Skip to content

fix: frozen UI state after login/logout#52

Open
olivereisenhut wants to merge 1 commit intomasterfrom
fix/logout-and-login
Open

fix: frozen UI state after login/logout#52
olivereisenhut wants to merge 1 commit intomasterfrom
fix/logout-and-login

Conversation

@olivereisenhut
Copy link
Copy Markdown
Contributor

Until now, we closed the window after a login or logout and opened a
fresh one via runCommand(context).
sketch-module-web-view no longer destroys (no idea when this changed)
the webview on win.close().
This means trying to open a new window via win.close() will give an
error as it reuses the existing window.
This left the UI stuck in the current view, even though the logout/login
was successful.
Instead of re-running the main function again, we just load the new view into
the existing webview after the login/logout finished.

Until now, we closed the window after a login or logout and opened a
fresh one via `runCommand(context)`.
`sketch-module-web-view` no longer destroys (no idea when this changed)
the webview on `win.close()`.
This means trying to open a new window via `win.close()` will give an
error as it reuses the existing window.
This left the UI stuck in the current view, even though the logout/login
was successful.
Instead of re-running the main function again, we just load the new view into
the existing webview after the login/logout finished.
@olivereisenhut olivereisenhut self-assigned this May 8, 2026
@olivereisenhut olivereisenhut requested a review from marguslant0 May 8, 2026 08:53
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.

1 participant