File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ def toggle(self, input):
70
70
71
71
def stop (self ):
72
72
self .running = False
73
- self .listener and self .listener . terminate ( )
73
+ self .listener and self .listenerqueue . put ( "exit" )
74
74
self .webui and self .webui .terminate ()
75
75
76
76
def log_resolution (self , size ):
@@ -87,7 +87,7 @@ def run(self):
87
87
os .path .join (conf .ApplicationPath , x [0 ])] + list (x [1 :])
88
88
self .listener = subprocess .Popen (args ("listener.py" , "--quiet" ),
89
89
stdin = subprocess .PIPE )
90
- self .webui = subprocess .Popen (args ("webui.py" ))
90
+ self .webui = subprocess .Popen (args ("webui.py" ))
91
91
self .listenerqueue = QueueLine (self .listener .stdin )
92
92
93
93
if conf .MouseEnabled : self .listenerqueue .put ("mouse_start" )
@@ -123,8 +123,8 @@ def OnInit(self):
123
123
self .frame_console .Bind (wx .EVT_CLOSE , self .OnToggleConsole )
124
124
125
125
self .model .log_resolution (wx .GetDisplaySize ())
126
- self .model .start ( )
127
- return True
126
+ wx . CallAfter ( self .model .start )
127
+ return True # App.OnInit returns whether processing should continue
128
128
129
129
130
130
def OnOpenMenu (self , event ):
You can’t perform that action at this time.
0 commit comments