mirror of
https://code.videolan.org/videolan/vlc
synced 2024-09-08 11:26:59 +02:00
macosx/library: remove invalid assumption about the library parsing state
This commit is contained in:
parent
7fb646b1da
commit
4aee01abce
@ -55,14 +55,6 @@ float kVLCDefaultThumbnailPosition = .15;
|
||||
_unsorted = YES;
|
||||
|
||||
NSNotificationCenter *defaultNotificationCenter = [NSNotificationCenter defaultCenter];
|
||||
[defaultNotificationCenter addObserver:self
|
||||
selector:@selector(applicationWillEnterBackground:)
|
||||
name:NSApplicationWillResignActiveNotification
|
||||
object:nil];
|
||||
[defaultNotificationCenter addObserver:self
|
||||
selector:@selector(applicationWillBecomeActive:)
|
||||
name:NSApplicationWillBecomeActiveNotification
|
||||
object:nil];
|
||||
[defaultNotificationCenter addObserver:self
|
||||
selector:@selector(applicationWillBecomeActive:)
|
||||
name:NSApplicationDidFinishLaunchingNotification
|
||||
@ -81,20 +73,6 @@ float kVLCDefaultThumbnailPosition = .15;
|
||||
_p_libraryInstance = NULL;
|
||||
}
|
||||
|
||||
- (void)applicationWillEnterBackground:(NSNotification *)aNotification
|
||||
{
|
||||
if (_p_libraryInstance) {
|
||||
vlc_ml_resume_background(_p_libraryInstance);
|
||||
}
|
||||
}
|
||||
|
||||
- (void)applicationWillBecomeActive:(NSNotification *)aNotification
|
||||
{
|
||||
if (_p_libraryInstance) {
|
||||
vlc_ml_pause_background(_p_libraryInstance);
|
||||
}
|
||||
}
|
||||
|
||||
- (void)playbackStateChanged:(NSNotification *)aNotification
|
||||
{
|
||||
if (!_p_libraryInstance) {
|
||||
|
Loading…
Reference in New Issue
Block a user