- fix the issue of previous selected on-screen widget get deleted when deleting legacy osc button

- coding improvements for on-screen widget deletion
This commit is contained in:
TrueZhuangjia
2025-03-02 21:47:57 +08:00
parent ebec9877b0
commit 70e5b3520c
6 changed files with 39 additions and 21 deletions
@@ -23,7 +23,7 @@ NS_ASSUME_NONNULL_BEGIN
- (void)reloadOnScreenWidgetViews;
@property LayoutOnScreenControls *layoutOSC; // object that contains a view which contains the on screen controller buttons that allows the user to drag and positions each button on the screen using touch
@property (nonatomic) NSMutableDictionary* OnScreenWidgetViewsDict;
@property (nonatomic) NSMutableSet* OnScreenWidgetViews;
@property int OSCSegmentSelected;