mirror of
https://github.com/kittywitch/konawall-py.git
synced 2026-02-09 04:19:19 -08:00
feat: add source status
This commit is contained in:
parent
2dba439f6b
commit
8e4f5895b0
1 changed files with 3 additions and 0 deletions
|
|
@ -198,6 +198,8 @@ class Konawall(wx.adv.TaskBarIcon):
|
||||||
|
|
||||||
# Time remaining for automatic wallpaper rotation
|
# Time remaining for automatic wallpaper rotation
|
||||||
self.timed_wallpaper_rotation_status_menu_item = create_info_item(self.menu, "Automatic wallpaper rotation disabled")
|
self.timed_wallpaper_rotation_status_menu_item = create_info_item(self.menu, "Automatic wallpaper rotation disabled")
|
||||||
|
|
||||||
|
self.source_menu_item = create_info_item(self.menu, f"Wallpaper source: {self.source}")
|
||||||
|
|
||||||
create_separator(self.menu)
|
create_separator(self.menu)
|
||||||
|
|
||||||
|
|
@ -287,6 +289,7 @@ class Konawall(wx.adv.TaskBarIcon):
|
||||||
|
|
||||||
if self.loaded_before == True:
|
if self.loaded_before == True:
|
||||||
# If we're reloading, we need to make sure the timer and menu item reflect our current state.
|
# If we're reloading, we need to make sure the timer and menu item reflect our current state.
|
||||||
|
self.source_menu_item.SetItemLabel(f"Wallpaper source: {self.source}")
|
||||||
self.respect_timed_wallpaper_rotation_toggle()
|
self.respect_timed_wallpaper_rotation_toggle()
|
||||||
self.respect_current_interval_status()
|
self.respect_current_interval_status()
|
||||||
self.create_message_dialog("Config reloaded.")
|
self.create_message_dialog("Config reloaded.")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue