UI: Options: "Log debug.." requires restart too.

This commit is contained in:
Nodir Temirkhodjaev 2021-04-30 12:51:45 +03:00
parent 8fe2139ca1
commit a7e1e570d6

View File

@ -92,12 +92,12 @@ void OptionsPage::saveIni(bool &restartRequired)
} }
} }
settings()->setDebug(m_cbLogDebug->isChecked()); if (settings()->debug() != m_cbLogDebug->isChecked()
|| settings()->console() != m_cbLogConsole->isChecked()) {
if (settings()->console() != m_cbLogConsole->isChecked()) { settings()->setDebug(m_cbLogDebug->isChecked());
settings()->setConsole(m_cbLogConsole->isChecked());
restartRequired = true; restartRequired = true;
} }
settings()->setConsole(m_cbLogConsole->isChecked());
} }
void OptionsPage::onRetranslateUi() void OptionsPage::onRetranslateUi()