Fix "Cancel" button for Auto Save setting update

This commit is contained in:
1024jp 2017-03-16 17:05:04 +09:00
parent c9c6e808f2
commit 7b2d3939ac
2 changed files with 2 additions and 1 deletions

View File

@ -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.

View File

@ -117,7 +117,7 @@ final class GeneralPaneController: NSViewController {
break // do nothing
case NSAlertThirdButtonReturn: // = Cancel
UserDefaults.standard[.enablesAutosaveInPlace] = newSetting
UserDefaults.standard[.enablesAutosaveInPlace] = !newSetting
default: break
}