File tree Expand file tree Collapse file tree 4 files changed +8
-5
lines changed
Expand file tree Collapse file tree 4 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -1919,6 +1919,7 @@ def StartWizard(parent):
19191919 ### right clic appears in a library
19201920 if not isinstance (parent , ShapeCanvas ):
19211921 ### Get path of the selected lib in order to change the last step of wizard
1922+ ### TODO: GetFocusedItem failed on Linux!
19221923 sdp = parent .GetItemPyData (parent .GetFocusedItem ())
19231924 kargs ['specific_domain_path' ]= sdp
19241925
Original file line number Diff line number Diff line change @@ -254,7 +254,7 @@ def OnApply(self, event):
254254 disable_plugin (name )
255255
256256 ### config file writing
257- self .mainW .cfg .Write (" plugins" , str (pluginsList ))
257+ self .mainW .cfg .Write (' plugins' , str (pluginsList ))
258258 self .mainW .cfg .Flush ()
259259
260260class BlockPluginsList (CheckListCtrl , Populable ):
Original file line number Diff line number Diff line change @@ -390,10 +390,10 @@ def OnViewLog(self, event):
390390 """ When View button is clicked
391391 """
392392 # The simulation verbose event occurs
393- trigger_event (" START_SIM_VERBOSE" , parent = self )
393+ trigger_event (' START_SIM_VERBOSE' , parent = self )
394394
395395 # The simulation verbose event occurs
396- trigger_event (" VIEW_ACTIVITY_REPORT" , parent = self , master = self .current_master )
396+ trigger_event (' VIEW_ACTIVITY_REPORT' , parent = self , master = self .current_master )
397397
398398 ###
399399 def OnOk (self , event ):
Original file line number Diff line number Diff line change @@ -34,7 +34,8 @@ def enable_plugin(plugin):
3434 for f in functions :
3535 if plugin == f .__module__ and event in disabled_event :
3636 disabled_event .remove (event )
37- disabled_plugin .remove (plugin )
37+ if plugin in disabled_plugin :
38+ disabled_plugin .remove (plugin )
3839
3940def disable_plugin (plugin ):
4041 """ Append resp. the plugin and the event to the disabled_plugin and disabled_event lists.
@@ -47,7 +48,8 @@ def disable_plugin(plugin):
4748 if hasattr (sys .modules [plugin ],'UnConfig' ):
4849 apply (sys .modules [plugin ].UnConfig ,())
4950 disabled_event .append (event )
50- disabled_plugin .append (plugin )
51+ if plugin not in disabled_plugin :
52+ disabled_plugin .append (plugin )
5153
5254
5355def is_enable (plugin ):
You can’t perform that action at this time.
0 commit comments