mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 18:42:24 +00:00
Small updates to locking
Refactorings
This commit is contained in:
@@ -23,7 +23,8 @@
|
||||
|
||||
@property (assign, nonatomic) KdbEntry *selectedEntry;
|
||||
@property (assign, nonatomic) KdbGroup *selectedGroup;
|
||||
@property (assign) BOOL showsEntry;
|
||||
|
||||
@property (assign, nonatomic) BOOL showsEntry;
|
||||
@property (retain) NSPopover *iconPopup;
|
||||
@property (retain) NSLayoutConstraint *showConstraint;
|
||||
@property (retain) NSLayoutConstraint *hideConstraint;
|
||||
@@ -70,10 +71,6 @@
|
||||
[self _clearContent];
|
||||
}
|
||||
|
||||
- (BOOL)isVisible {
|
||||
return [[self view] frame].size.width > 0;
|
||||
}
|
||||
|
||||
- (void)_updateContent {
|
||||
if(self.showsEntry && self.selectedEntry) {
|
||||
[self _showEntry];
|
||||
@@ -151,8 +148,6 @@
|
||||
[self.usernameTextField setEnabled:enabled];
|
||||
[self.URLTextField setEnabled:enabled];
|
||||
|
||||
[self.openURLButton setEnabled:enabled];
|
||||
|
||||
}
|
||||
|
||||
#pragma mark Actions
|
||||
@@ -202,5 +197,4 @@
|
||||
[self _updateContent];
|
||||
}
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user