We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2a2808 commit 5f01d06Copy full SHA for 5f01d06
python/inputmodule/gui/gui_threading.py
@@ -1,5 +1,4 @@
1
# Global GUI variables
2
-STOP_THREAD = False
3
DISCONNECTED_DEVS = []
4
STATUS = ''
5
@@ -12,18 +11,19 @@ def get_status():
12
11
return STATUS
13
14
def stop_thread():
15
- global STOP_THREAD
16
- STOP_THREAD = True
+ global STATUS
+ STATUS = 'STOP_THREAD'
17
18
19
def reset_thread():
20
21
- STOP_THREAD = False
+ if STATUS == 'STOP_THREAD':
+ STATUS = ''
22
23
24
def is_thread_stopped():
25
26
- return STOP_THREAD
+ return STATUS == 'STOP_THREAD'
27
28
29
def is_dev_disconnected(dev):
0 commit comments