1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-12-26 07:13:24 +03:00

Adapt version check

This commit is contained in:
Tae Won Ha 2020-01-29 18:52:21 +01:00
parent d408ef1d63
commit 90e6cf13b4
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44

View File

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