diff --git a/rpcs3/rpcs3qt/welcome_dialog.cpp b/rpcs3/rpcs3qt/welcome_dialog.cpp index a0241eb006..ebbd1c26c4 100644 --- a/rpcs3/rpcs3qt/welcome_dialog.cpp +++ b/rpcs3/rpcs3qt/welcome_dialog.cpp @@ -15,6 +15,7 @@ welcome_dialog::welcome_dialog(std::shared_ptr gui_settings, bool : QDialog(parent) , ui(new Ui::welcome_dialog) , m_gui_settings(std::move(gui_settings)) + , m_use_dark_theme(gui::utils::dark_mode_active()) { ui->setupUi(this); @@ -27,7 +28,7 @@ welcome_dialog::welcome_dialog(std::shared_ptr gui_settings, bool ui->do_not_show->setEnabled(!is_manual_show); ui->do_not_show->setChecked(!m_gui_settings->GetValue(gui::ib_show_welcome).toBool()); ui->use_dark_theme->setEnabled(!is_manual_show); - ui->use_dark_theme->setChecked(gui::utils::dark_mode_active()); + ui->use_dark_theme->setChecked(m_use_dark_theme); ui->icon_label->load(QStringLiteral(":/rpcs3.svg")); ui->label_3->setText(tr( R"( diff --git a/rpcs3/rpcs3qt/welcome_dialog.h b/rpcs3/rpcs3qt/welcome_dialog.h index 9a0dd0b4fe..a2cf293def 100644 --- a/rpcs3/rpcs3qt/welcome_dialog.h +++ b/rpcs3/rpcs3qt/welcome_dialog.h @@ -24,5 +24,5 @@ public: private: std::unique_ptr ui; std::shared_ptr m_gui_settings; - bool m_use_dark_theme = false; + bool m_use_dark_theme; };