]> git.lyx.org Git - lyx.git/commitdiff
Simplify
authorJuergen Spitzmueller <spitz@lyx.org>
Sun, 15 Oct 2023 09:02:35 +0000 (11:02 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Sun, 15 Oct 2023 09:02:35 +0000 (11:02 +0200)
src/frontends/qt/GuiApplication.cpp
src/frontends/qt/GuiPrefs.cpp

index d1c91fbb0113c245989dad3e0740bcf5241db9f4..44b4278be6137f7e8102dcfe25cb764847193153 100644 (file)
@@ -1270,7 +1270,7 @@ docstring Application::mathIcon(docstring const & c)
 
 void Application::applyPrefs()
 {
-       if (lyxrc.ui_style != system_lyxrc.ui_style)
+       if (lyxrc.ui_style != "default")
                lyx::frontend::GuiApplication::setStyle(toqstr(lyxrc.ui_style));
 }
 
index 0884746e6262be2b30c76b7ab9c8fe40c51c60a9..dd9fcf8cf57aa3f53fd35d86313fe8a26d27ece4 100644 (file)
@@ -2519,17 +2519,9 @@ PrefUserInterface::PrefUserInterface(GuiPreferences * form)
        iconSetCO->addItem(qt_("Classic"), "classic");
        iconSetCO->addItem(qt_("Oxygen"), "oxygen");
 
-       QString uistyletr = (system_lyxrc.ui_style == "default")
-                       ? qt_("Default")
-                       : toqstr(system_lyxrc.ui_style);
-       uiStyleCO->addItem(uistyletr, toqstr(system_lyxrc.ui_style));
+       uiStyleCO->addItem(qt_("Default"), toqstr("default"));
        for (auto const & style : QStyleFactory::keys())
-       {
-               uistyletr = (style == "default")
-                               ? qt_("Default")
-                               : style;
                uiStyleCO->addItem(style, style.toLower());
-       }
 
        if (guiApp->platformName() != "xcb"
            && !guiApp->platformName().contains("wayland"))