Skip to content

Commit

Permalink
withdraw AFTER registering handler
Browse files Browse the repository at this point in the history
  • Loading branch information
scosman committed Aug 12, 2024
1 parent 972bc0c commit 0ab0196
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion desktop/desktop.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ def close_splash():
if __name__ == "__main__":
# TK without a window, to get dock events
root = tk.Tk()
root.withdraw() # hide the window
# Register callback for the dock icon to reopen the web app
root.createcommand("tk::mac::ReopenApplication", show_studio)
root.protocol("WM_DELETE_WINDOW", on_win_closing)
root.withdraw() # hide the window
run_taskbar()
# start the server in a thread, show the web app, and start the taskbar
root.after(10, run_studio_thread)
Expand Down

0 comments on commit 0ab0196

Please sign in to comment.