Merge pull request #1103 from ychin/decouple-sparkle-from-code

Decouple Sparkle from MMAppController if DISABLE_SPARKLE is set
This commit is contained in:
Yee Cheng Chin
2020-10-04 01:52:07 -07:00
committed by GitHub
2 changed files with 7 additions and 0 deletions
+5
View File
@@ -14,7 +14,10 @@
@class MMWindowController;
@class MMVimController;
#if !DISABLE_SPARKLE
@class SUUpdater;
#endif
@interface MMAppController : NSObject <MMAppProtocol, NSUserInterfaceItemSearching> {
@@ -36,7 +39,9 @@
NSMutableDictionary *inputQueues;
int processingFlag;
#if !DISABLE_SPARKLE
SUUpdater *updater;
#endif
FSEventStreamRef fsEventStream;
}
+2
View File
@@ -326,7 +326,9 @@ fsEventCallback(ConstFSEventStreamRef streamRef,
[defaultMainMenu release]; defaultMainMenu = nil;
currentMainMenu = nil;
[appMenuItemTemplate release]; appMenuItemTemplate = nil;
#if !DISABLE_SPARKLE
[updater release]; updater = nil;
#endif
[super dealloc];
}