make sure that the icon theme is properly loaded when the prefs are reloaded.

This commit is contained in:
suter_a 2019-05-02 11:02:06 +02:00
parent 3256dde54e
commit f320230b30

View File

@ -1309,6 +1309,22 @@ void PTextEdit::fileOpenPrefs()
msg = QString("Prefs from '") + fln + QString("' loaded.");
QMessageBox::information(nullptr, "Info", msg);
}
// make sure that dark/plain icon scheme is properly loaded
if (getTheme()) {
switchMenuIcons();
switchToolbarIcons();
}
if (fAdmin->getDarkThemeIconsMenuFlag() != fDarkMenuIcon) {
fDarkMenuIcon = !fDarkMenuIcon;
switchMenuIcons();
}
if (fAdmin->getDarkThemeIconsToolbarFlag() != fDarkToolBarIcon) {
fDarkToolBarIcon = !fDarkToolBarIcon;
switchToolbarIcons();
}
}
//----------------------------------------------------------------------------------------------------