fix: profile saving issue caused by launching osw tool via tap gesture

This commit is contained in:
TrueZhuanjia
2025-07-25 19:56:46 +08:00
parent 02c6a12a82
commit ab7ccc7732
7 changed files with 41 additions and 31 deletions
+2 -2
View File
@@ -399,7 +399,7 @@ static const double X1_MOUSE_SPEED_DIVISOR = 2.5;
}
- (void) clearOnScreenKeyboardButtons{
- (void) clearOnScreenWidgets{
for (UIView *subview in self->streamFrameTopLayerView.subviews) {
// 检查子视图是否是特定类型的实例
if ([subview isKindOfClass:[OnScreenWidgetView class]]) {
@@ -422,7 +422,7 @@ static const double X1_MOUSE_SPEED_DIVISOR = 2.5;
// NSLog(@"reload on screen keyboard buttons here");
// remove all keyboard widget views first
[self clearOnScreenKeyboardButtons];
[self clearOnScreenWidgets];
// bool customOscEnabled = [self isOscEnabled] && settings.onscreenControls.intValue == OnScreenControlsLevelCustom;