mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-07 15:36:26 +00:00
Qt: save settings dialog window state
This commit is contained in:
parent
6b370e85d5
commit
02cdf8ac63
2 changed files with 10 additions and 0 deletions
|
|
@ -1994,10 +1994,17 @@ settings_dialog::settings_dialog(std::shared_ptr<gui_settings> gui_settings, std
|
|||
|
||||
m_emu_settings->EnhanceComboBox(ui->combo_num_ppu_threads, emu_settings_type::NumPPUThreads, true);
|
||||
SubscribeTooltip(ui->gb_num_ppu_threads, tooltips.settings.num_ppu_threads);
|
||||
|
||||
if (!restoreGeometry(m_gui_settings->GetValue(gui::cfg_geometry).toByteArray()))
|
||||
{
|
||||
// Ignore. This will most likely only fail if the setting doesn't contain any values
|
||||
}
|
||||
}
|
||||
|
||||
settings_dialog::~settings_dialog()
|
||||
{
|
||||
m_gui_settings->SetValue(gui::cfg_geometry, saveGeometry());
|
||||
|
||||
delete ui;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue