[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
parent
c89837c0f8
commit
dbdcad6c04
|
@ -43,6 +43,9 @@ static NSString *getBadgeName(NSString *baseName, BOOL colorfulIcons) {
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)refreshDockIcon:(NSInteger)playbackStatus withProgress:(double)progressStatus {
|
- (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 displayChanged = NO;
|
||||||
BOOL drawIcon = NO;
|
BOOL drawIcon = NO;
|
||||||
BOOL removeProgress = NO;
|
BOOL removeProgress = NO;
|
||||||
|
|
Loading…
Reference in New Issue