diff --git a/VoidLink/ViewControllers/CustomOSCViewControl/LayoutOnScreenControlsViewController.swift b/VoidLink/ViewControllers/CustomOSCViewControl/LayoutOnScreenControlsViewController.swift index 62f63964..47b2c57b 100644 --- a/VoidLink/ViewControllers/CustomOSCViewControl/LayoutOnScreenControlsViewController.swift +++ b/VoidLink/ViewControllers/CustomOSCViewControl/LayoutOnScreenControlsViewController.swift @@ -1173,6 +1173,16 @@ final class LayoutOnScreenControlsViewController: UIViewController, OnScreenWidg } @IBAction func saveTapped(_ sender: Any?) { + + /* + let targetProfile = profilesManager.getAllProfiles()[0] + let currentProfile = profilesManager.getSelectedProfile() + // currentProfile.name = "RPG游戏示例 / RPG example (ZZZ in Genshin style)" + currentProfile.name = "Default" + //currentProfile.name = "Default"; + // profilesManager.replace(targetProfile as! OSCProfile, with: currentProfile) + */ + clearSickInput() OSCProfilesManager.setLayoutViewBounds(view.bounds) let success = profilesManager.updateSelectedProfile(layoutOSC.oscButtonLayerPool) diff --git a/VoidLinkSwiftUI/WidgetPickerView.swift b/VoidLinkSwiftUI/WidgetPickerView.swift index caf001b8..114c78d6 100644 --- a/VoidLinkSwiftUI/WidgetPickerView.swift +++ b/VoidLinkSwiftUI/WidgetPickerView.swift @@ -1704,15 +1704,7 @@ struct WidgetPickerView: View { showsComboModeControl || showsIntervalSlider || showsShapeControl - if !hasVisibleConfigurationSection { - return true - } - - let isSinglePadSelection = poolItems.count == 1 && isPad(poolItems[0]) - let isSingleButtonThenSinglePadSelection = - poolItems.count == 2 && !isPad(poolItems[0]) && isPad(poolItems[1]) - - return isSinglePadSelection || isSingleButtonThenSinglePadSelection + return !hasVisibleConfigurationSection } private func prepareCreateWidgetDefaults(for submissionAction: WidgetPickerSubmissionAction) {