just found out isnan() exists

This commit is contained in:
level3tjg
2022-08-30 10:44:48 -04:00
parent 3aa7c57d82
commit 2e7fd253a8
+1 -1
View File
@@ -349,7 +349,7 @@ BOOL hidePaidPromotionCard() {
// Prevent uYou player bar from showing when not playing downloaded media
%hook PlayerManager
- (void)pause {
if ([@([self progress]) isEqualToNumber:[NSDecimalNumber notANumber]])
if (isnan([self progress]))
return;
%orig;
}