mamburu: Whether to show remaining time or elapsed time now survives restarts
This commit is contained in:
parent
74db595a2d
commit
053b09ba1b
1 changed files with 6 additions and 0 deletions
|
@ -11,6 +11,11 @@
|
||||||
|
|
||||||
@implementation TimeField
|
@implementation TimeField
|
||||||
|
|
||||||
|
- (void)awakeFromNib
|
||||||
|
{
|
||||||
|
showTimeRemaining = [[NSUserDefaults standardUserDefaults] boolForKey:@"timerShowTimeRemaining"];
|
||||||
|
}
|
||||||
|
|
||||||
- (void)update
|
- (void)update
|
||||||
{
|
{
|
||||||
NSString *text;
|
NSString *text;
|
||||||
|
@ -32,6 +37,7 @@
|
||||||
- (void)mouseDown:(NSEvent *)theEvent
|
- (void)mouseDown:(NSEvent *)theEvent
|
||||||
{
|
{
|
||||||
showTimeRemaining = !showTimeRemaining;
|
showTimeRemaining = !showTimeRemaining;
|
||||||
|
[[NSUserDefaults standardUserDefaults] setBool:showTimeRemaining forKey:@"timerShowTimeRemaining"];
|
||||||
[self update];
|
[self update];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue