Browse Source

Future Slider Reset Bug.

v1.4.1
Abhishek Banthia 8 years ago
parent
commit
224b21b6aa
  1. 2
      Clocker/CLParentPanelController.h
  2. 2
      Clocker/CLParentPanelController.m
  3. 1
      Clocker/Floating Window/CLFloatingWindowController.m
  4. 3
      Clocker/PanelController.m

2
Clocker/CLParentPanelController.h

@ -9,6 +9,7 @@
#import <Cocoa/Cocoa.h> #import <Cocoa/Cocoa.h>
#import "CLOneWindowController.h" #import "CLOneWindowController.h"
#import "CLAppFeedbackWindowController.h" #import "CLAppFeedbackWindowController.h"
#import "CLTableViewDataSource.h"
@interface CLParentPanelController : NSWindowController<NSWindowDelegate, NSTableViewDataSource, NSTableViewDelegate> @interface CLParentPanelController : NSWindowController<NSWindowDelegate, NSTableViewDataSource, NSTableViewDelegate>
@ -27,6 +28,7 @@
@property (weak) IBOutlet NSTableView *mainTableview; @property (weak) IBOutlet NSTableView *mainTableview;
@property (weak) IBOutlet NSLayoutConstraint *scrollViewHeight; @property (weak) IBOutlet NSLayoutConstraint *scrollViewHeight;
@property (nonatomic, strong) CLOneWindowController *oneWindow; @property (nonatomic, strong) CLOneWindowController *oneWindow;
@property (strong) CLTableViewDataSource *timezoneDataSource;
@property (weak, nonatomic) IBOutlet NSImageView *imageView; @property (weak, nonatomic) IBOutlet NSImageView *imageView;
@property (weak, nonatomic) IBOutlet NSTextField *leftField; @property (weak, nonatomic) IBOutlet NSTextField *leftField;

2
Clocker/CLParentPanelController.m

@ -12,7 +12,6 @@
#import "CLOneWindowController.h" #import "CLOneWindowController.h"
#import <pop/POP.h> #import <pop/POP.h>
#import "iRate.h" #import "iRate.h"
#import "CLTableViewDataSource.h"
#import <Crashlytics/Crashlytics.h> #import <Crashlytics/Crashlytics.h>
#import "ApplicationDelegate.h" #import "ApplicationDelegate.h"
#import <Crashlytics/Crashlytics.h> #import <Crashlytics/Crashlytics.h>
@ -29,7 +28,6 @@ typedef NS_ENUM(NSUInteger, CLClockerMode) {
}; };
@interface CLParentPanelController () @interface CLParentPanelController ()
@property (strong) CLTableViewDataSource *timezoneDataSource;
@end @end
@implementation CLParentPanelController @implementation CLParentPanelController

1
Clocker/Floating Window/CLFloatingWindowController.m

@ -130,6 +130,7 @@ NSString *const CLTimezoneCellIdentifier = @"timeZoneCell";
-(void)windowWillClose:(NSNotification *)notification -(void)windowWillClose:(NSNotification *)notification
{ {
self.futureSliderValue = 0; self.futureSliderValue = 0;
self.timezoneDataSource.futureSliderValue = 0;
if (self.floatingWindowTimer) if (self.floatingWindowTimer)
{ {

3
Clocker/PanelController.m

@ -205,6 +205,8 @@ static PanelController *sharedPanel = nil;
- (void)openPanel - (void)openPanel
{ {
[Answers logCustomEventWithName:@"openedPanel" customAttributes:@{}];
NSPoint mouseLoc = [NSEvent mouseLocation]; NSPoint mouseLoc = [NSEvent mouseLocation];
NSEnumerator *screenEnum = [[NSScreen screens] objectEnumerator]; NSEnumerator *screenEnum = [[NSScreen screens] objectEnumerator];
NSScreen *screen; NSScreen *screen;
@ -212,6 +214,7 @@ static PanelController *sharedPanel = nil;
[screen frame], NO)); [screen frame], NO));
self.futureSliderValue = 0; self.futureSliderValue = 0;
self.timezoneDataSource.futureSliderValue = 0;
self.reviewView.hidden = !self.showReviewCell; self.reviewView.hidden = !self.showReviewCell;

Loading…
Cancel
Save