Skip to content

Commit

Permalink
GUI: Move window centering to the fadeIn method so it's only called w…
Browse files Browse the repository at this point in the history
…hen the window is displayed
  • Loading branch information
russellhancox committed Apr 10, 2015
1 parent 8365e00 commit c996921
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions Source/SantaGUI/SNTMessageWindow.m
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ - (BOOL)canBecomeMainWindow {

- (IBAction)fadeIn:(id)sender {
[self setAlphaValue:0.f];
[self center];
[self makeKeyAndOrderFront:sender];
[NSAnimationContext beginGrouping];
[[NSAnimationContext currentContext] setDuration:0.15f];
Expand Down
1 change: 0 additions & 1 deletion Source/SantaGUI/SNTMessageWindowController.m
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ - (void)loadWindow {
[super loadWindow];
[self.window setLevel:NSPopUpMenuWindowLevel];
[self.window setMovableByWindowBackground:YES];
[self.window center];

if (![[SNTConfigurator configurator] eventDetailURL]) {
[self.openEventButton removeFromSuperview];
Expand Down

0 comments on commit c996921

Please sign in to comment.