Move a SetEnableAlert call to UICommon

This fixes a problem where changing the Use Panic Handlers setting on
Android wouldn't take effect until the app was restarted.
This commit is contained in:
JosJuice
2022-09-24 12:35:10 +02:00
parent b314e2a313
commit 16c71b9a35
2 changed files with 12 additions and 4 deletions

View File

@ -309,8 +309,6 @@ void InterfacePane::OnSaveConfig()
Config::SetBase(Config::MAIN_SHOW_ACTIVE_TITLE, m_checkbox_show_active_title->isChecked());
Config::SetBase(Config::MAIN_PAUSE_ON_FOCUS_LOST, m_checkbox_pause_on_focus_lost->isChecked());
Common::SetEnableAlert(Config::Get(Config::MAIN_USE_PANIC_HANDLERS));
auto new_language = m_combobox_language->currentData().toString().toStdString();
if (new_language != Config::Get(Config::MAIN_INTERFACE_LANGUAGE))
{