mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 19:45:20 +00:00
suggested minor cleanup
This commit is contained in:
parent
089e273c3b
commit
15f3208e89
1 changed files with 4 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue