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]() {