mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-01-06 00:59:18 +00:00
Qt: Remove duplicate gui repaints in settings dialog
ApplyGuiOptions(true) already forces GuiStylesheetRequest and therefore RepaintGui in main_window if necessary. We don't need GuiRepaintRequest on accept because there should be no option left that doesn't repaint immediately
This commit is contained in:
parent
f0358f85fc
commit
fac8a520f0
@ -95,7 +95,6 @@ settings_dialog::settings_dialog(std::shared_ptr<gui_settings> xSettings, const
|
||||
std::vector<std::string> selected_ls = std::vector<std::string>(selectedlle.begin(), selectedlle.end());
|
||||
xemu_settings->SaveSelectedLibraries(selected_ls);
|
||||
xemu_settings->SaveSettings();
|
||||
Q_EMIT GuiRepaintRequest();
|
||||
accept();
|
||||
});
|
||||
connect(ui->cancelButton, &QAbstractButton::clicked, this, &QWidget::close);
|
||||
@ -743,9 +742,7 @@ settings_dialog::settings_dialog(std::shared_ptr<gui_settings> xSettings, const
|
||||
ApplyGuiOptions(true);
|
||||
xgui_settings->Reset(true);
|
||||
xgui_settings->ChangeToConfig(GUI::Default);
|
||||
Q_EMIT GuiStylesheetRequest(GUI::Default);
|
||||
Q_EMIT GuiSettingsSyncRequest();
|
||||
Q_EMIT GuiRepaintRequest();
|
||||
AddConfigs();
|
||||
AddStylesheets();
|
||||
AddColoredIcons();
|
||||
|
Loading…
Reference in New Issue
Block a user