use didMoveToWindow

This commit is contained in:
Nguyễn Đạt authored and GitHub committed 2024-01-27 23:37:41 +07:00
1 parent 4c7b3c42bd
commit b95f0874ba
1 file changed
+1 -1
+1 -1
View File
@@ -157,7 +157,7 @@ NSBundle *tweakBundle = uYouPlusBundle();
// Hide iSponsorBlock
%hook YTRightNavigationButtons
- (void)layoutSubviews {
- (void)didMoveToWindow {
%orig;
if (IS_ENABLED(@"hideiSponsorBlockButton_enabled"))
self.sponsorBlockButton.hidden = YES;