use didMoveToWindow
This commit is contained in:
1 parent
4c7b3c42bd
commit
b95f0874ba
1 file changed
+1
-1
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user