From 0ab019655312d708b07ec2c0921a46fc18957b7e Mon Sep 17 00:00:00 2001 From: scosman Date: Sun, 11 Aug 2024 21:20:07 -0400 Subject: [PATCH] withdraw AFTER registering handler --- desktop/desktop.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop/desktop.py b/desktop/desktop.py index 3b8d786..64c2d90 100644 --- a/desktop/desktop.py +++ b/desktop/desktop.py @@ -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)