Fix default theme change

This commit is contained in:
1024jp 2020-02-07 21:29:40 +09:00
parent d18a3199d4
commit 371c9b8fb8
2 changed files with 2 additions and 1 deletions

View File

@ -15,6 +15,7 @@ Change Log
### Fixes
- Fix an issue where the Unicode code point field in the document inspector displayed always “not selected.”
- Fix an issue where default theme change in the preferences was not applied to opened documents under specific conditions.
- Fix an issue where unescaping replacement string in the regular expression replacement failed with specific text patterns.
- Fix an issue where the editor's line height and tab width in the opened windows did not update even the setting is changed.
- Fix an issue in scripting where settings some properties, such as `tab width`, `tab expands` and `wrap lines`, in the document creation phase were ignored.

View File

@ -324,8 +324,8 @@ final class AppearancePaneController: NSViewController, NSMenuItemValidation, NS
case .dark: return true
}
}()
UserDefaults.standard[.theme] = themeName
UserDefaults.standard[.pinsThemeAppearance] = (isDarkTheme != isDarkAppearance)
UserDefaults.standard[.theme] = themeName
}
}