11
11
from core .config import get_stylesheet , get_config
12
12
from copy import deepcopy
13
13
from core .utils .controller import reload_application
14
- from settings import DEBUG
15
14
16
15
class BarManager (QObject ):
17
16
styles_modified = pyqtSignal ()
@@ -42,8 +41,6 @@ def on_styles_modified(self):
42
41
self .stylesheet = stylesheet
43
42
for bar in self .bars :
44
43
bar .setStyleSheet (self .stylesheet )
45
- if DEBUG :
46
- logging .info ("Successfully loaded updated stylesheet and applied to all bars." )
47
44
48
45
@pyqtSlot ()
49
46
def on_config_modified (self ):
@@ -55,22 +52,19 @@ def on_config_modified(self):
55
52
if config and (config != self .config ):
56
53
if any (config [key ] != self .config [key ] for key in ['bars' , 'widgets' , 'komorebi' , 'debug' , 'env_file' ]):
57
54
self .config = config
58
- reload_application ("Reloading Application because of config update.. ." )
55
+ reload_application ("Reloading Application because of config change ." )
59
56
else :
60
57
self .config = config
61
- if DEBUG :
62
- logging .info ("Successfully loaded updated config and re-initialised all bars." )
58
+ logging .info ("Successfully loaded updated config and re-initialised all bars." )
63
59
64
60
@pyqtSlot (QScreen )
65
61
def on_screens_update (self , _screen : QScreen ) -> None :
66
- if DEBUG :
67
- logging .info ("Screens updated. Re-initialising all bars." )
68
- reload_application ("Reloading Application because of screen update..." , forced = True )
62
+ logging .info ("Screens updated. Re-initialising all bars." )
63
+ reload_application ("Reloading Application because of screen update." , forced = True )
69
64
70
65
def run_listeners_in_threads (self ):
71
66
for listener in self .widget_event_listeners :
72
- if DEBUG :
73
- logging .info (f"Starting { listener .__name__ } ..." )
67
+ logging .info (f"Starting { listener .__name__ } ..." )
74
68
thread = listener ()
75
69
thread .start ()
76
70
self ._threads [listener ] = thread
0 commit comments