Qt/InterfacePane: Toggle panic handlers instantly

This commit is contained in:
spycrab 2018-05-25 04:17:04 +02:00
parent a68b8202e1
commit 39706748e7
1 changed files with 3 additions and 0 deletions

View File

@ -16,6 +16,7 @@
#include "Common/CommonPaths.h"
#include "Common/FileSearch.h"
#include "Common/FileUtil.h"
#include "Common/MsgHandler.h"
#include "Common/StringUtil.h"
#include "Core/ConfigManager.h"
@ -248,6 +249,8 @@ void InterfacePane::OnSaveConfig()
settings.m_show_active_title = m_checkbox_show_active_title->isChecked();
settings.m_PauseOnFocusLost = m_checkbox_pause_on_focus_lost->isChecked();
SetEnableAlert(settings.bUsePanicHandlers);
auto new_language = m_combobox_language->currentData().toString().toStdString();
if (new_language != SConfig::GetInstance().m_InterfaceLanguage)
{