mirror of
https://github.com/coteditor/CotEditor.git
synced 2024-09-11 11:25:57 +03:00
Fix "Cancel" button for Auto Save setting update
This commit is contained in:
parent
c9c6e808f2
commit
7b2d3939ac
@ -28,6 +28,7 @@ develop
|
||||
### Fixes
|
||||
|
||||
- Fix an issue where the document syntax style could be back to the default if the current style was set manually and document was modified in another process.
|
||||
- Fix an issue where the “Cancel” button in the dialog shown when changing the Auto Save setting in General pane didn't revert the actual setting state.
|
||||
- Fix an possible crash on highlighting matching brace.
|
||||
|
||||
|
||||
|
@ -117,7 +117,7 @@ final class GeneralPaneController: NSViewController {
|
||||
break // do nothing
|
||||
|
||||
case NSAlertThirdButtonReturn: // = Cancel
|
||||
UserDefaults.standard[.enablesAutosaveInPlace] = newSetting
|
||||
UserDefaults.standard[.enablesAutosaveInPlace] = !newSetting
|
||||
|
||||
default: break
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user