mirror of
https://github.com/MacPass/MacPass.git
synced 2026-02-02 05:18:15 +00:00
Use of properties
This commit is contained in:
@@ -74,7 +74,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
- (void)willShowTab {
|
- (void)willShowTab {
|
||||||
_hotKey = [DDHotKey hotKeyWithKeyData:[[NSUserDefaults standardUserDefaults] dataForKey:kMPSettingsKeyGlobalAutotypeKeyDataKey]];
|
_hotKey = [DDHotKey hotKeyWithKeyData:[NSUserDefaults.standardUserDefaults dataForKey:kMPSettingsKeyGlobalAutotypeKeyDataKey]];
|
||||||
/* Change any invalid hotkeys to valid ones? */
|
/* Change any invalid hotkeys to valid ones? */
|
||||||
self.hotKeyTextField.hotKey = self.hotKey;
|
self.hotKeyTextField.hotKey = self.hotKey;
|
||||||
}
|
}
|
||||||
@@ -86,7 +86,7 @@
|
|||||||
return; // Nothing of interest has changed;
|
return; // Nothing of interest has changed;
|
||||||
}
|
}
|
||||||
_hotKey = hotKey;
|
_hotKey = hotKey;
|
||||||
[[NSUserDefaults standardUserDefaults] setObject:self.hotKey.keyData forKey:kMPSettingsKeyGlobalAutotypeKeyDataKey];
|
[NSUserDefaults.standardUserDefaults setObject:self.hotKey.keyData forKey:kMPSettingsKeyGlobalAutotypeKeyDataKey];
|
||||||
}
|
}
|
||||||
|
|
||||||
#pragma mark -
|
#pragma mark -
|
||||||
|
|||||||
Reference in New Issue
Block a user