fix: only auto-close login on explicit post-login redirect, not initial load

This commit is contained in:
SuperDooper
2026-05-08 13:14:48 +02:00
parent e6fa66bc73
commit ad525ef8d1
+2 -2
View File
@@ -44,8 +44,8 @@ public partial class LoginWindow : Window
: "Complete sign-in, then click Done."; : "Complete sign-in, then click Done.";
}); });
// Auto-close once clearly on the main app page // Auto-close only on explicit post-login redirects, not on initial load
if (signedIn && (uri.Contains("/chats") || uri.Contains("/new") || uri == "https://claude.ai/")) if (signedIn && (uri.Contains("/chats") || uri.Contains("/new")))
{ {
await SaveAndClose(cookies); await SaveAndClose(cookies);
} }