From d4f8a964cdfd935d3f505bf1bf49789e55e77ed9 Mon Sep 17 00:00:00 2001 From: talksik Date: Tue, 27 Jan 2026 17:03:33 -0800 Subject: [PATCH] fix: prevent auth dialog jankiness on start --- src/MainWindow.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 6d8ab3a..dcaac20 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -19,10 +19,15 @@ MainWindow::MainWindow(QWidget *parent) ui = new Ui::MainWindow; ui->setupUi(this); - // Show auth dialog initially (user sees this while init() checks for session) m_authDialog->setModal(true); - m_authDialog->reset(); - m_authDialog->show(); + + QTimer::singleShot(3000, this, [this]() { + if (!m_authManager->isSignedIn()) + { + m_authDialog->reset(); + m_authDialog->show(); + } + }); // Connect signal so dialog hides if valid session found, shows and resets on sign out connect(m_authManager, &AuthManager::isSignedInChanged, this, [this]() {