From 3b8e498e7f833ac58eb1ad042f31ea0e915fce83 Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Wed, 23 May 2018 00:32:47 -0700 Subject: [PATCH] Fix total time display on startup, when all metadata is correctly loaded. --- Playlist/PlaylistLoader.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Playlist/PlaylistLoader.m b/Playlist/PlaylistLoader.m index 346fb39e2..2dcd25193 100755 --- a/Playlist/PlaylistLoader.m +++ b/Playlist/PlaylistLoader.m @@ -480,7 +480,11 @@ NSMutableDictionary * dictionaryWithPropertiesOfObject(id obj, NSArray * filterL ++i; } - if (!i) return; + if (!i) + { + [playlistController performSelectorOnMainThread:@selector(updateTotalTime) withObject:nil waitUntilDone:NO]; + return; + } NSLock *outLock = [[NSLock alloc] init]; NSMutableArray *outArray = [[NSMutableArray alloc] init];