NOISSUE change icon themes without restart

This commit is contained in:
Petr Mrázek 2015-01-28 20:56:23 +01:00
parent c6427caa9e
commit d03dbea1b7
2 changed files with 7 additions and 0 deletions

View File

@ -975,6 +975,7 @@ void MainWindow::on_actionSettings_triggered()
proxymodel->invalidate();
proxymodel->sort(0);
updateToolsMenu();
update();
}
void MainWindow::on_actionInstanceSettings_triggered()

View File

@ -272,6 +272,7 @@ void MultiMCPage::applySettings()
// Updates
s->set("AutoUpdate", ui->autoUpdateCheckBox->isChecked());
s->set("UpdateChannel", m_currentUpdateChannel);
auto original = s->get("IconTheme").toString();
//FIXME: make generic
switch (ui->themeComboBox->currentIndex())
{
@ -299,6 +300,11 @@ void MultiMCPage::applySettings()
break;
}
if(original != s->get("IconTheme"))
{
QIcon::setThemeName(s->get("IconTheme").toString());
}
// Console settings
s->set("ShowConsole", ui->showConsoleCheck->isChecked());
s->set("AutoCloseConsole", ui->autoCloseConsoleCheck->isChecked());