diff --git a/rpcs3/rpcs3qt/gui_application.cpp b/rpcs3/rpcs3qt/gui_application.cpp index 857369b74a..51b3219fd4 100644 --- a/rpcs3/rpcs3qt/gui_application.cpp +++ b/rpcs3/rpcs3qt/gui_application.cpp @@ -161,20 +161,16 @@ bool gui_application::Init() { welcome_dialog* welcome = new welcome_dialog(m_gui_settings, false); - bool use_dark_theme = false; - connect(welcome, &QDialog::finished, this, [&]() { - use_dark_theme = welcome->use_dark_theme(); + if (welcome->use_dark_theme()) + { + m_gui_settings->SetValue(gui::m_currentStylesheet, gui::DarkStylesheet); + } }); // welcome dialog is auto-flagged (in its constructor) as WA_DeleteOnClose, so its pointer is no more usable after welcome->exec() welcome->exec(); - - if (use_dark_theme) - { - m_gui_settings->SetValue(gui::m_currentStylesheet, gui::DarkStylesheet); - } } // Check maxfiles