Skip to content

Commit

Permalink
feat(tray): remove tray icon during application reload
Browse files Browse the repository at this point in the history
  • Loading branch information
amnweb committed Jan 25, 2025
1 parent 2901cc0 commit dc98952
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/tray.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ def run_komorebi_reload():
threading.Thread(target=run_komorebi_reload).start()

def _reload_application(self):
self.remove_tray_icon()
logging.info("Reloading Application...")
os.execl(sys.executable, sys.executable, *sys.argv)

Expand All @@ -218,6 +219,7 @@ def _exit_application(self):
QCoreApplication.exit(0)
except:
os._exit(0)
self.remove_tray_icon()

def _open_docs_in_browser(self):
webbrowser.open(self._docs_url)
Expand Down

0 comments on commit dc98952

Please sign in to comment.