mirror of
https://github.com/slgobinath/SafeEyes.git
synced 2025-01-19 02:49:51 +01:00
Fix disable time in tray icon
This commit is contained in:
parent
c03033f33d
commit
98dd4ed760
@ -188,6 +188,8 @@ class TrayIcon:
|
|||||||
message = self.language['messages']['next_break_at'].format(formatted_time)
|
message = self.language['messages']['next_break_at'].format(formatted_time)
|
||||||
if self.config.get('show_time_in_tray', False):
|
if self.config.get('show_time_in_tray', False):
|
||||||
self.indicator.set_label(formatted_time, '')
|
self.indicator.set_label(formatted_time, '')
|
||||||
|
else:
|
||||||
|
self.indicator.set_label('', '')
|
||||||
Utility.execute_main_thread(self.item_info.set_label, message)
|
Utility.execute_main_thread(self.item_info.set_label, message)
|
||||||
|
|
||||||
def on_enable_clicked(self, *args):
|
def on_enable_clicked(self, *args):
|
||||||
|
Loading…
Reference in New Issue
Block a user