Revision: 27993
http://sourceforge.net/p/bibdesk/svn/27993
Author: hofman
Date: 2022-10-04 09:36:38 +0000 (Tue, 04 Oct 2022)
Log Message:
-----------
make sure button is always synchronized with state
Modified Paths:
--------------
trunk/bibdesk/BDSKSecureTextField.m
Modified: trunk/bibdesk/BDSKSecureTextField.m
===================================================================
--- trunk/bibdesk/BDSKSecureTextField.m 2022-10-04 09:16:18 UTC (rev 27992)
+++ trunk/bibdesk/BDSKSecureTextField.m 2022-10-04 09:36:38 UTC (rev 27993)
@@ -142,7 +142,6 @@
- (IBAction)toggleShowsText:(id)sender {
[self setShowsText:[sender state] == NSOnState];
- [sender setToolTip:showsText ? NSLocalizedString(@"Hide password", @"Tool
tip message") : NSLocalizedString(@"Show password", @"Tool tip message")];
}
- (void)setShowsText:(BOOL)flag {
@@ -150,6 +149,9 @@
return;
showsText = flag;
+ [button setState:showsText ? NSOnState : NSOffState];
+ [button setToolTip:showsText ? NSLocalizedString(@"Hide password", @"Tool
tip message") : NSLocalizedString(@"Show password", @"Tool tip message")];
+
NSTextFieldCell *oldCell = [[self cell] retain];
if (alternateCell == nil) {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit