Skip to content

fix: hide progress bar and return instead of exit(0) on empty share link - #33

Open
Jah-yee wants to merge 1 commit into
schneik80:mainfrom
Jah-yee:main
Open

Jah-yee wants to merge 1 commit into
schneik80:mainfrom
Jah-yee:main

Conversation

@Jah-yee

@Jah-yee Jah-yee commented Oct 1, 2026

Copy link
Copy Markdown

Description

When shareLink comes back empty after calling the Share API, the code called exit(0) which terminates the Python process and prevents progressBar.hide() from being called (line 204).

This leaves the busy indicator stuck on screen.

Fix

Replaced exit(0) with return, and added progressBar.hide() before returning when the document was not previously shared (not wasShared).

Fixes #9.

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 schneik80#9.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Get a Share Link: exit(0) inside the execute handler when the share API returns an empty link

1 participant