mirror of
https://github.com/qvacua/vimr.git
synced 2024-12-25 23:02:35 +03:00
Adapt version check
This commit is contained in:
parent
d408ef1d63
commit
90e6cf13b4
@ -28,7 +28,9 @@ class ShortcutsPref: PrefPane,
|
|||||||
)
|
)
|
||||||
|
|
||||||
super.init(frame: .zero)
|
super.init(frame: .zero)
|
||||||
if let version = self.shortcutsUserDefaults?.integer(forKey: "version"), version > 0 {
|
|
||||||
|
if let version = self.shortcutsUserDefaults?.integer(forKey: "version"),
|
||||||
|
version > defaultsVersion {
|
||||||
let alert = NSAlert()
|
let alert = NSAlert()
|
||||||
alert.alertStyle = .warning
|
alert.alertStyle = .warning
|
||||||
alert.messageText = "Incompatible Defaults for Shortcuts"
|
alert.messageText = "Incompatible Defaults for Shortcuts"
|
||||||
|
Loading…
Reference in New Issue
Block a user