File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed
src/kde_material_you_colors Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -366,7 +366,7 @@ def main():
366
366
367
367
if apply and wallpaper .source and stop_apply is False or first_run :
368
368
if counter == 0 :
369
- logging .info (f"{ wallpaper . current } " )
369
+ logging .info (f"{ wallpaper } " )
370
370
apply_themes .apply (config , wallpaper , light_mode_watcher .value )
371
371
apply = False
372
372
@@ -381,7 +381,7 @@ def main():
381
381
if plugin_watcher .changed or config_watcher .changed :
382
382
apply = False
383
383
stop_apply = False
384
- logging .info (f"{ wallpaper . current } " )
384
+ logging .info (f"{ wallpaper } " )
385
385
apply_themes .apply (config , wallpaper , light_mode_watcher .value )
386
386
counter = 0
387
387
@@ -392,11 +392,11 @@ def main():
392
392
counter = 0
393
393
394
394
if counter >= target_cycles and stop_apply is False :
395
- logging .info (f"{ wallpaper . current } " )
395
+ logging .info (f"{ wallpaper } " )
396
396
apply_themes .apply (config , wallpaper , light_mode_watcher .value )
397
397
counter = 0
398
398
399
- print ("counter:" , counter )
399
+ # print("counter:", counter)
400
400
401
401
time .sleep (config .read ("main_loop_delay" ))
402
402
first_run = False
Original file line number Diff line number Diff line change @@ -30,6 +30,9 @@ def __init__(self, config: Configs):
30
30
self ._error = None
31
31
self .reload ()
32
32
33
+ def __str__ (self ) -> str :
34
+ return f"Wallpaper: { self ._plugin } ({ self ._type } ): { self ._source } "
35
+
33
36
@staticmethod
34
37
def validate_monitor (monitor ) -> int :
35
38
return math_utils .clip (monitor , 0 , 999 , 0 )
@@ -79,9 +82,9 @@ def error(self):
79
82
@property
80
83
def current (self ):
81
84
o = {
82
- "source " : self ._plugin ,
85
+ "plugin " : self ._plugin ,
83
86
"type" : self ._type ,
84
- "data " : self ._source ,
87
+ "source " : self ._source ,
85
88
"error" : self ._error ,
86
89
}
87
90
return o
You can’t perform that action at this time.
0 commit comments