just found out isnan() exists
This commit is contained in:
+1
-1
@@ -349,7 +349,7 @@ BOOL hidePaidPromotionCard() {
|
|||||||
// Prevent uYou player bar from showing when not playing downloaded media
|
// Prevent uYou player bar from showing when not playing downloaded media
|
||||||
%hook PlayerManager
|
%hook PlayerManager
|
||||||
- (void)pause {
|
- (void)pause {
|
||||||
if ([@([self progress]) isEqualToNumber:[NSDecimalNumber notANumber]])
|
if (isnan([self progress]))
|
||||||
return;
|
return;
|
||||||
%orig;
|
%orig;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user