Browse Source

Not hiding buttons on mouseOver.

v1.4.1
Abhishek Banthia 8 years ago
parent
commit
a43544758a
  1. BIN
      Clocker.xcodeproj/project.xcworkspace/xcuserdata/abhishekbanthia.xcuserdatad/UserInterfaceState.xcuserstate
  2. 2
      Clocker/BackgroundView.m
  3. 1
      Clocker/CLParentPanelController.h
  4. 17
      Clocker/CLParentPanelController.m
  5. 16
      Clocker/PanelController.m

BIN
Clocker.xcodeproj/project.xcworkspace/xcuserdata/abhishekbanthia.xcuserdatad/UserInterfaceState.xcuserstate generated

Binary file not shown.

2
Clocker/BackgroundView.m

@ -120,8 +120,6 @@
{
PanelController *controller = [self getPanelControllerInstance];
[controller showOptions:shouldHide];
if (!shouldHide){
[controller removeContextHelpForSlider];
}

1
Clocker/CLParentPanelController.h

@ -35,7 +35,6 @@
@property (strong, nonatomic) CLAppFeedbackWindowController *feedbackWindow;
- (void)updateDefaultPreferences;
- (void)showOptions:(BOOL)value;
- (void)removeContextHelpForSlider;
- (void)updatePanelColor;
- (void)openPreferenceWindowWithValue:(BOOL)value;

17
Clocker/CLParentPanelController.m

@ -148,23 +148,6 @@ NSString *const CLYesWithExclamation = @"Yes!";
}
}
- (void)showOptions:(BOOL)value
{
if (self.defaultPreferences.count == 0)
{
value = YES;
}
dispatch_async(dispatch_get_main_queue(), ^{
self.shutdownButton.hidden = !value;
self.preferencesButton.hidden = !value;
});
}
- (IBAction)sliderMoved:(id)sender
{
NSCalendar *currentCalendar = [NSCalendar autoupdatingCurrentCalendar];

16
Clocker/PanelController.m

@ -318,22 +318,6 @@ static PanelController *sharedPanel = nil;
}
#pragma mark -
#pragma mark Hiding Buttons on Mouse Exit
#pragma mark -
- (void)showOptions:(BOOL)value
{
if (self.defaultPreferences.count == 0)
{
value = YES;
}
self.shutdownButton.hidden = !value;
self.preferencesButton.hidden = !value;
}
+ (instancetype)getPanelControllerInstance
{
__block PanelController *panelController;

Loading…
Cancel
Save