Qt: Simplify stylesheet logic

This commit is contained in:
Megamouse 2021-02-07 13:14:36 +01:00 committed by Ivan
parent 632e36ab44
commit 62ca7a9b60
8 changed files with 63 additions and 105 deletions

View file

@ -1926,7 +1926,7 @@ void settings_dialog::OnApplyStylesheet()
{
m_current_stylesheet = ui->combo_stylesheets->currentData().toString();
m_gui_settings->SetValue(gui::m_currentStylesheet, m_current_stylesheet);
Q_EMIT GuiStylesheetRequest(m_gui_settings->GetCurrentStylesheetPath());
Q_EMIT GuiStylesheetRequest();
}
int settings_dialog::exec()