[vlc-commits] macosx: don't show the 'hey, we found an update' dialog when playing a video

Felix Paul Kühne git at videolan.org
Sat Jan 11 18:34:51 CET 2014


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sat Jan 11 18:34:22 2014 +0100| [10daf9ee3038951aaacf9b5824c9d77a140f4ca1] | committer: Felix Paul Kühne

macosx: don't show the 'hey, we found an update' dialog when playing a video

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=10daf9ee3038951aaacf9b5824c9d77a140f4ca1
---

 modules/gui/macosx/intf.m |   11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
index f4f3ebe..bd4ae5e 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -754,6 +754,8 @@ static VLCMain *_o_sharedMainInstance = nil;
 
     [NSBundle loadNibNamed:@"MainWindow" owner: self];
     [o_mainwindow makeKeyAndOrderFront:nil];
+
+    [[SUUpdater sharedUpdater] setDelegate:self];
 }
 
 - (void)applicationDidFinishLaunching:(NSNotification *)aNotification
@@ -936,6 +938,15 @@ static VLCMain *_o_sharedMainInstance = nil;
     [[VLCCoreInteraction sharedInstance] stop];
 }
 
+/* don't be enthusiastic about an update if we currently play a video */
+- (BOOL)updaterMayCheckForUpdates:(SUUpdater *)bundle
+{
+    if ([self activeVideoPlayback])
+        return NO;
+
+    return YES;
+}
+
 #pragma mark -
 #pragma mark Media Key support
 



More information about the vlc-commits mailing list