mirror of
https://github.com/coteditor/CotEditor.git
synced 2024-09-11 11:25:57 +03:00
Fix “Reset to Default” (fix #741)
This commit is contained in:
parent
b3dc1789ef
commit
18cd293252
@ -21,6 +21,7 @@ develp
|
||||
|
||||
### Fixes
|
||||
|
||||
- Fix an issue where “Reset to Default” action in Font menu was ignored.
|
||||
- Fix an issue where the second value of the printed time in the console was not sexagesimal.
|
||||
|
||||
|
||||
|
@ -98,8 +98,6 @@ extension EditorTextView {
|
||||
let size = UserDefaults.standard[.fontSize]
|
||||
let font = NSFont(name: name, size: size) ?? NSFont.userFont(ofSize: size)
|
||||
|
||||
guard font != self.font else { return }
|
||||
|
||||
self.font = font
|
||||
self.setScaleKeepingVisibleArea(1.0)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user