Skip to content

Commit

Permalink
use didMoveToWindow
Browse files Browse the repository at this point in the history
  • Loading branch information
qnblackcat authored Jan 27, 2024
1 parent 4c7b3c4 commit b95f087
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/uYouPlus.xm
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b95f087

Please sign in to comment.