Skip to content

Commit

Permalink
shutdown test
Browse files Browse the repository at this point in the history
  • Loading branch information
scosman committed Aug 12, 2024
1 parent 6aa2481 commit 59e4e7d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion desktop/desktop.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ def run_taskbar():
tray = pystray.Icon("fune", image, "fune", menu)
# running detached since we use tk mainloop to get events from dock icon
tray.run_detached()
return tray


def close_splash():
Expand Down Expand Up @@ -122,7 +123,9 @@ def close_splash():
root.withdraw() # remove the window
# Register callback for the dock icon to reopen the web app
root.createcommand("tk::mac::ReopenApplication", show_studio)
run_taskbar()
tray = run_taskbar()
root.after(10, show_studio)
root.after(10, close_splash)
root.mainloop()
tray.stop()
raise SystemExit(0)

0 comments on commit 59e4e7d

Please sign in to comment.