use didMoveToWindow

This commit is contained in:
Nguyễn Đạt 2024-01-27 23:37:41 +07:00 committed by GitHub
parent 4c7b3c42bd
commit b95f0874ba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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;