Commit 0cd6538d authored by David Fuhrmann's avatar David Fuhrmann

macosx: improve readability for main window check

parent 65c4bea6
...@@ -255,7 +255,7 @@ ...@@ -255,7 +255,7 @@
// set active video to no BEFORE closing the window to avoid stopping playback // set active video to no BEFORE closing the window to avoid stopping playback
// due to NSWindowWillCloseNotification // due to NSWindowWillCloseNotification
[o_window setHasActiveVideo: NO]; [o_window setHasActiveVideo: NO];
if (![NSStringFromClass([o_window class]) isEqualToString:@"VLCMainWindow"]) { if ([o_window class] != [VLCMainWindow class]) {
[o_window close]; [o_window close];
[o_window orderOut:self]; // for dark interface [o_window orderOut:self]; // for dark interface
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment