[Dock Icon] Refuse to update if plaque didn't load

Refuse to update the dock icon image if the dock icon plaque image fails
to load somehow. Really weird case.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
swiftingly
Christopher Snowhill 2022-06-20 21:34:05 -07:00
parent c89837c0f8
commit dbdcad6c04
1 changed files with 3 additions and 0 deletions

View File

@ -43,6 +43,9 @@ static NSString *getBadgeName(NSString *baseName, BOOL colorfulIcons) {
}
- (void)refreshDockIcon:(NSInteger)playbackStatus withProgress:(double)progressStatus {
// Really weird crash user experienced because the plaque image didn't load?
if(!dockImage || dockImage.size.width == 0 || dockImage.size.height == 0) return;
BOOL displayChanged = NO;
BOOL drawIcon = NO;
BOOL removeProgress = NO;