From 8978433aed9fed7d6f1f499119500a4bde246093 Mon Sep 17 00:00:00 2001 From: Maarten Billemont Date: Sat, 30 Apr 2016 18:09:27 -0400 Subject: [PATCH] fadeIn/fadeOut cleanup. --- MasterPassword/ObjC/Mac/MPPasswordWindowController.m | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/MasterPassword/ObjC/Mac/MPPasswordWindowController.m b/MasterPassword/ObjC/Mac/MPPasswordWindowController.m index ade371f4..406d6ed9 100644 --- a/MasterPassword/ObjC/Mac/MPPasswordWindowController.m +++ b/MasterPassword/ObjC/Mac/MPPasswordWindowController.m @@ -42,14 +42,6 @@ [self replaceFonts:self.window.contentView]; prof_rewind( @"replaceFonts" ); -// [[NSNotificationCenter defaultCenter] addObserverForName:NSApplicationWillBecomeActiveNotification object:nil -// queue:[NSOperationQueue mainQueue] usingBlock:^(NSNotification *note) { -// [self fadeIn]; -// }]; -// [[NSNotificationCenter defaultCenter] addObserverForName:NSApplicationWillResignActiveNotification object:nil -// queue:[NSOperationQueue mainQueue] usingBlock:^(NSNotification *note) { -// [self fadeOut]; -// }]; [[NSNotificationCenter defaultCenter] addObserverForName:NSWindowDidBecomeKeyNotification object:self.window queue:[NSOperationQueue mainQueue] usingBlock:^(NSNotification *note) { prof_new( @"didBecomeKey" ); @@ -66,9 +58,7 @@ }]; [[NSNotificationCenter defaultCenter] addObserverForName:NSApplicationWillResignActiveNotification object:nil queue:[NSOperationQueue mainQueue] usingBlock:^(NSNotification *note) { -#ifndef DEBUG - [self.window fadeOut]; -#endif + [self.window close]; }]; [[NSNotificationCenter defaultCenter] addObserverForName:MPSignedInNotification object:nil queue:[NSOperationQueue mainQueue] usingBlock:^(NSNotification *note) {