fix dark theme switching on initial welcome dialog (#16373)

This commit is contained in:
Antonino Di Guardo 2024-12-06 20:14:35 +01:00 committed by GitHub
parent 05d12f68ad
commit 24655fd975
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 13 additions and 23 deletions

View file

@ -161,19 +161,7 @@ bool gui_application::Init()
{
welcome_dialog* welcome = new welcome_dialog(m_gui_settings, false);
bool use_dark_theme = false;
connect(welcome, &QDialog::accepted, this, [&]()
{
use_dark_theme = welcome->does_user_want_dark_theme();
});
welcome->exec();
if (use_dark_theme)
{
m_gui_settings->SetValue(gui::m_currentStylesheet, "Darker Style by TheMitoSan");
}
}
// Check maxfiles