Skip to content

Commit

Permalink
Merge pull request #3 from Adastram1/Adastram1-patch-1
Browse files Browse the repository at this point in the history
Remove bug in icons, and added update after set
  • Loading branch information
Adastram1 authored Jun 5, 2024
2 parents 90af95b + 5b42705 commit 344f007
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Setting up
setup(
name="tray_manager",
version="1.0.1",
version="1.0.2",
url="https://github.com/Adastram1/tray_manager",
license="GNU Lesser General Public License v3 (LGPLv3)",

Expand Down
3 changes: 2 additions & 1 deletion tray_manager/tray_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -847,7 +847,7 @@ def __init__(self, app_name: str, default_show: bool = True, run_in_separate_thr
self.menu = Menu(self) # Create the menu item
self.notification = Notification(self)
self._default_icon = Image.new("L", (32, 32), 255) # Create the default icon
self._icons = {str: Image.Image}
self._icons: dict[str: Image.Image] = {}

if backend:
if isinstance(backend, Backends):
Expand Down Expand Up @@ -927,6 +927,7 @@ def set_icon(self, name: Union[str, Values.DEFAULT], show: bool = True) -> None:

if show: # Show the icon in the system tray
self.show()
self.tray.update_menu()
return

def show(self) -> None:
Expand Down

0 comments on commit 344f007

Please sign in to comment.