From 96145baa7ac35b8762800f746534a2d05f333ff2 Mon Sep 17 00:00:00 2001 From: TrueZhuanjia Date: Thu, 12 Jun 2025 00:19:08 +0800 Subject: [PATCH] fix favorite settings relocation issue --- Limelight/ViewControllers/SettingsViewController.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Limelight/ViewControllers/SettingsViewController.m b/Limelight/ViewControllers/SettingsViewController.m index 5e0418a7..ab0b299d 100644 --- a/Limelight/ViewControllers/SettingsViewController.m +++ b/Limelight/ViewControllers/SettingsViewController.m @@ -919,7 +919,7 @@ BOOL isCustomResolution(CGSize res) { [stack addSubview:button]; [NSLayoutConstraint activateConstraints:@[ [button.trailingAnchor constraintEqualToAnchor:stack.trailingAnchor constant:-4], - [button.bottomAnchor constraintEqualToAnchor: stack.arrangedSubviews[0].bottomAnchor constant:-1], + [button.bottomAnchor constraintEqualToAnchor: stack.arrangedSubviews[0].bottomAnchor constant:-2], ]]; } @@ -1023,8 +1023,9 @@ BOOL isCustomResolution(CGSize res) { - (void)saveFavoriteSettingStackIdentifiers { - if(currentSettingsMenuMode == RemoveSettingItem){ + if(currentSettingsMenuMode != AllSettings){ [_favoriteSettingStackIdentifiers removeAllObjects]; + //for(NSInteger i = 0; i < parentStack.arrangedSubviews.count; i++){ for(NSInteger i = 0; i < parentStack.arrangedSubviews.count; i++){ [_favoriteSettingStackIdentifiers addObject:parentStack.arrangedSubviews[i].accessibilityIdentifier]; }