Fix wrong dialog showing after Seerr login (#688)

**Description**

Fixes a race condition in the Seerr integration.

When you added a new Seerr server and logged in successfully, the app
would immediately show the "Disable Seerr?" dialog instead of a success
message. The state was getting mixed up during recomposition and
thinking you wanted to remove the server you just added.

Fixed by being more explicit about what mode the dialog is in (adding vs
removing) so it can't get confused by background state changes. Also
added a success toast when login works.

**AI/LLM usage**

Used Claude Code to analyze the issue.
This commit is contained in:
Justin Caveda 2026-01-13 14:32:29 -06:00 committed by GitHub
parent 7c018f9a37
commit 18e4877736
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 40 additions and 14 deletions

View file

@ -434,6 +434,7 @@
<string name="pending">Pending</string>
<string name="seerr_integration">Seerr integration</string>
<string name="remove_seerr_server">Remove Seerr Server</string>
<string name="seerr_server_added">Seerr server added</string>
<string name="password">Password</string>
<string name="username">Username</string>
<string name="url">URL</string>