From 04ecd45f7c551eb98ce7f59dbe06691e5dd286b0 Mon Sep 17 00:00:00 2001 From: TrueZhuanjia Date: Sun, 27 Jul 2025 00:32:44 +0800 Subject: [PATCH] osw layouTool post orientation change actions --- .../LayoutOnScreenControlsViewController.m | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/VoidLink/ViewControllers/CustomOSCViewControl/LayoutOnScreenControlsViewController.m b/VoidLink/ViewControllers/CustomOSCViewControl/LayoutOnScreenControlsViewController.m index 4500bb38..8b847391 100644 --- a/VoidLink/ViewControllers/CustomOSCViewControl/LayoutOnScreenControlsViewController.m +++ b/VoidLink/ViewControllers/CustomOSCViewControl/LayoutOnScreenControlsViewController.m @@ -273,8 +273,8 @@ - (void)viewWillTransitionToSize:(CGSize)size withTransitionCoordinator:(id)coordinator{ viewWillBeResized = true; - //if(CGSizeEqualToSize(size, self.view.frame.size)) return; - [self saveTapped:nil]; + [self clearStickIndicator]; + if(!_quickSwitchEnabled) [self saveTapped:nil]; } - (void)deviceOrientationDidChange{ @@ -283,7 +283,12 @@ - (void)handleOrientationChangeForOnScreenWidgets{ if(!viewWillBeResized) return; + [self setupWidgetPanel]; + viewWillBeResized = false; + selectedWidgetView = nil; + selectedControllerLayer = nil; + _oscProfilesTableViewController.layoutViewBounds = self.view.bounds; [OSCProfilesManager setOnScreenWidgetViewsSet:self.onScreenWidgetViews]; // pass the keyboard button dict to profiles manager [self reloadOnScreenWidgetViews];