Skip to content

Commit 5f01d06

Browse files
committed
Unified variable names to avoid confusion
1 parent f2a2808 commit 5f01d06

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

python/inputmodule/gui/gui_threading.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Global GUI variables
2-
STOP_THREAD = False
32
DISCONNECTED_DEVS = []
43
STATUS = ''
54

@@ -12,18 +11,19 @@ def get_status():
1211
return STATUS
1312

1413
def stop_thread():
15-
global STOP_THREAD
16-
STOP_THREAD = True
14+
global STATUS
15+
STATUS = 'STOP_THREAD'
1716

1817

1918
def reset_thread():
20-
global STOP_THREAD
21-
STOP_THREAD = False
19+
global STATUS
20+
if STATUS == 'STOP_THREAD':
21+
STATUS = ''
2222

2323

2424
def is_thread_stopped():
25-
global STOP_THREAD
26-
return STOP_THREAD
25+
global STATUS
26+
return STATUS == 'STOP_THREAD'
2727

2828

2929
def is_dev_disconnected(dev):

0 commit comments

Comments
 (0)