Commits

Dmitry Promsky  committed b759987

Whether to show remaining time or elapsed time now survives restarts

  • Participants
  • Parent commits 0d43def

Comments (0)

Files changed (1)

File Window/TimeField.m

 
 #import "TimeField.h"
 
+@implementation TimeField
 
-@implementation TimeField
+- (void)awakeFromNib
+{
+    showTimeRemaining = [[NSUserDefaults standardUserDefaults] boolForKey:@"timerShowTimeRemaining"];
+}
 
 - (void)update
 {
 - (void)mouseDown:(NSEvent *)theEvent
 {
 	showTimeRemaining = !showTimeRemaining;
+    [[NSUserDefaults standardUserDefaults] setBool:showTimeRemaining forKey:@"timerShowTimeRemaining"];
 	[self update];
 }