commit 953c84a4689e34321548016db30d97d7f588b30a
Author: Koji Yokota <[email protected]>
Date:   Thu Aug 28 21:56:09 2025 +0900

    Select a right color theme in menu after export
---
 src/frontends/qt/GuiPrefs.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/frontends/qt/GuiPrefs.cpp b/src/frontends/qt/GuiPrefs.cpp
index 3fbcbb42b7..aad11c5cc5 100644
--- a/src/frontends/qt/GuiPrefs.cpp
+++ b/src/frontends/qt/GuiPrefs.cpp
@@ -1441,8 +1441,6 @@ void PrefColors::saveTheme()
                QFile target_file(toqstr(file_path));
                if (!target_file.exists() || wantToOverwrite()) {
                        saveExportThemeCommon(toqstr(file_path));
-                       cacheAllThemes();
-                       selectCurrentTheme(theme_name_);
                        initial_edit_ = true;
                        break;
                }
@@ -1517,6 +1515,8 @@ void PrefColors::saveExportThemeCommon(QString file_path)
        }
        ofs.close();
        initializeThemesLW();
+       cacheAllThemes();
+       selectCurrentTheme(theme_name_);
        activatePrefsWindow(form_);
 }
 
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to