@@ -19,6 +19,7 @@ CParameterPlugin::CParameterPlugin(QObject *parent)
1919 , m_bShowProtocolPrefix(false )
2020 , m_bShowIpPortInName(false )
2121 , m_AdaptWindows(CFrmViewer::ADAPT_WINDOWS::KeepAspectRationToWindow)
22+ , m_bEnableSetPluginsPath(false )
2223 , m_szPluginsPath(RabbitCommon::CDir::Instance()->GetDirPlugins())
2324 , m_WhiteList(this , " Whilelist" )
2425 , m_BlackList(this , " BlackList" )
@@ -64,6 +65,7 @@ int CParameterPlugin::OnLoad(QSettings &set)
6465 SetAdaptWindows ((CFrmViewer::ADAPT_WINDOWS)set.value (" Viewer/AdaptWindows" ,
6566 (int )GetAdaptWindows ()).toInt ());
6667 SetPluginsPath (set.value (" PluginsPath" , GetPluginsPath ()).toStringList ());
68+ SetEnableSetPluginsPath (set.value (" PluginsPath/Enable" , GetEnableSetPluginsPath ()).toBool ());
6769 set.endGroup ();
6870 return 0 ;
6971}
@@ -86,6 +88,7 @@ int CParameterPlugin::OnSave(QSettings& set)
8688 set.setValue (" Connecter/Name/ShowIpPort" , GetShowIpPortInName ());
8789 set.setValue (" Viewer/AdaptWindows" , (int )GetAdaptWindows ());
8890 set.setValue (" PluginsPath" , GetPluginsPath ());
91+ set.setValue (" PluginsPath/Enable" , GetEnableSetPluginsPath ());
8992 set.endGroup ();
9093 return 0 ;
9194}
@@ -308,6 +311,19 @@ void CParameterPlugin::SetAdaptWindows(CFrmViewer::ADAPT_WINDOWS aw)
308311 emit sigAdaptWindowsChanged ();
309312}
310313
314+ bool CParameterPlugin::GetEnableSetPluginsPath () const
315+ {
316+ return m_bEnableSetPluginsPath;
317+ }
318+
319+ void CParameterPlugin::SetEnableSetPluginsPath (bool newEnableSetPluginsPath)
320+ {
321+ if (m_bEnableSetPluginsPath == newEnableSetPluginsPath)
322+ return ;
323+ m_bEnableSetPluginsPath = newEnableSetPluginsPath;
324+ SetModified (true );
325+ }
326+
311327QStringList CParameterPlugin::GetPluginsPath () const
312328{
313329 return m_szPluginsPath;
0 commit comments