[vlc-commits] macosx: fix KVO for status icon visibility

David Fuhrmann git at videolan.org
Sat Aug 20 23:46:01 CEST 2016


vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Sat Aug 20 23:37:55 2016 +0200| [f3abf1ec3fbb3d8c7c05bfab9f4ea57c89058de6] | committer: David Fuhrmann

macosx: fix KVO for status icon visibility

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

 modules/gui/macosx/VLCStatusBarIcon.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/macosx/VLCStatusBarIcon.m b/modules/gui/macosx/VLCStatusBarIcon.m
index b597cdc..8703d66 100644
--- a/modules/gui/macosx/VLCStatusBarIcon.m
+++ b/modules/gui/macosx/VLCStatusBarIcon.m
@@ -176,7 +176,7 @@
             [self.statusItem setBehavior:NSStatusItemBehaviorRemovalAllowed];
             [self.statusItem setAutosaveName:@"statusBarItem"];
             [self.statusItem addObserver:self forKeyPath:NSStringFromSelector(@selector(isVisible))
-                                 options:0 context:NULL];
+                                 options:NSKeyValueObservingOptionNew context:NULL];
         }
     }
 



More information about the vlc-commits mailing list