• R/O
  • SSH
  • HTTPS

magic-txd: Commit


Commit MetaInfo

Revision52 (tree)
Zeit2020-09-19 07:47:08
Autorquiret

Log Message

- fixed a bug in the theme selection where you could not switch back to the dark theme if the editor was launched with light theme
- tiny English localization adjustment

Ändern Zusammenfassung

Diff

--- src/mainwindow.menu.cpp (revision 51)
+++ src/mainwindow.menu.cpp (revision 52)
@@ -426,10 +426,12 @@
426426 if ( themeName == L"dark" )
427427 {
428428 this->actionThemeDark->setChecked( true );
429+ this->actionThemeLight->setChecked( false );
429430 }
430431 else if ( themeName == L"light" )
431432 {
432433 this->actionThemeLight->setChecked( true );
434+ this->actionThemeDark->setChecked( false );
433435 }
434436 }
435437
@@ -1399,7 +1401,6 @@
13991401 MainWindow *mainWnd = mainWindowMenuEnvRegister.get().GetBackResolve( this );
14001402
14011403 if (checked && !this->recheckingThemeItem) {
1402- this->actionThemeLight->setChecked(false);
14031404 mainWnd->setActiveTheme(L"dark");
14041405 }
14051406 else {
@@ -1414,7 +1415,6 @@
14141415 MainWindow *mainWnd = mainWindowMenuEnvRegister.get().GetBackResolve( this );
14151416
14161417 if (checked && !this->recheckingThemeItem) {
1417- this->actionThemeDark->setChecked(false);
14181418 mainWnd->setActiveTheme(L"light");
14191419 }
14201420 else {
Show on old repository browser