Add workaround for snippet loading (#951, #953)

This commit is contained in:
1024jp 2019-05-23 01:02:07 +09:00
parent 4ef2f3cff2
commit f1638122d9
2 changed files with 9 additions and 1 deletions

View File

@ -13,6 +13,7 @@ Change Log
### Fixes
- Fix performance regression due to a bug fix in CotEditor 3.7.4.
- Fix an issue where the snippet texts were still occasionally not editable from the preferences pane.

View File

@ -156,6 +156,13 @@ class KeyBindingsViewController: NSViewController, NSOutlineViewDataSource, NSOu
}
func outlineViewSelectionDidChange(_ notification: Notification) {
// dummy implementation for SnippetKeyBindingsViewController.
// -> Otherwise, this delegate method in subclass is not called (2019-05 Xcode 10.2, macOS 10.14, Swift 5.1).
}
// NSTextFieldDelegate < outlineView->ShortcutKeyField
/// validate and apply new shortcut key input
@ -331,7 +338,7 @@ final class SnippetKeyBindingsViewController: KeyBindingsViewController, NSTextV
// NSOutlineViewDelegate < outlineView
/// change snippet array controller's selection
func outlineViewSelectionDidChange(_ notification: Notification) {
override func outlineViewSelectionDidChange(_ notification: Notification) {
guard
let arrayController = self.snippetArrayController,