mamburu: Whether to show remaining time or elapsed time now survives restarts
parent
74db595a2d
commit
053b09ba1b
|
@ -11,6 +11,11 @@
|
|||
|
||||
@implementation TimeField
|
||||
|
||||
- (void)awakeFromNib
|
||||
{
|
||||
showTimeRemaining = [[NSUserDefaults standardUserDefaults] boolForKey:@"timerShowTimeRemaining"];
|
||||
}
|
||||
|
||||
- (void)update
|
||||
{
|
||||
NSString *text;
|
||||
|
@ -32,6 +37,7 @@
|
|||
- (void)mouseDown:(NSEvent *)theEvent
|
||||
{
|
||||
showTimeRemaining = !showTimeRemaining;
|
||||
[[NSUserDefaults standardUserDefaults] setBool:showTimeRemaining forKey:@"timerShowTimeRemaining"];
|
||||
[self update];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue