From 2d005cdd6d0058ef1a8a0a929ef7b84e8ba4d7f3 Mon Sep 17 00:00:00 2001 From: Jah-yee <166608075+Jah-yee@users.noreply.github.com> Date: Thu, 1 Oct 2026 10:52:03 +0800 Subject: [PATCH] fix: hide progress bar and return instead of exit(0) on empty share link When shareLink comes back empty, exit(0) was called which terminates the Python process and prevents progressBar.hide() from being called. Fix: use 'if not wasShared: progressBar.hide()' before returning, instead of exit(0). This properly cleans up the busy indicator. Fixes #9. --- commands/shareDocument/entry.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/commands/shareDocument/entry.py b/commands/shareDocument/entry.py index 91ebae0..d24426a 100644 --- a/commands/shareDocument/entry.py +++ b/commands/shareDocument/entry.py @@ -154,7 +154,9 @@ def command_execute(args: adsk.core.CommandEventArgs): 1, 2, ) - exit(0) + if not wasShared: + progressBar.hide() + return # Copy the shared link to the clipboard ptutil.clipText(shareLink)