mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Only apply ui_style if it has changed
This commit is contained in:
parent
e62497b037
commit
72e242267b
@ -2536,6 +2536,7 @@ void PrefUserInterface::applyRC(LyXRC & rc) const
|
||||
|
||||
QString const uistyle = uiStyleCO->itemData(
|
||||
uiStyleCO->currentIndex()).toString();
|
||||
if (rc.ui_style != fromqstr(uistyle)) {
|
||||
rc.ui_style = fromqstr(uistyle);
|
||||
if (rc.ui_style == "default")
|
||||
// FIXME: This should work with frontend::GuiApplication::setStyle(QString())
|
||||
@ -2545,6 +2546,7 @@ void PrefUserInterface::applyRC(LyXRC & rc) const
|
||||
" requires a restart of LyX."));
|
||||
else
|
||||
frontend::GuiApplication::setStyle(uistyle);
|
||||
}
|
||||
|
||||
rc.ui_file = internal_path(fromqstr(uiFileED->text()));
|
||||
rc.use_system_theme_icons = useSystemThemeIconsCB->isChecked();
|
||||
|
Loading…
Reference in New Issue
Block a user