- widget template editing code

- widgetPickerView fixes
This commit is contained in:
True Zhuanjia committed 2026-04-08 00:07:13 +08:00
1 parent 68ee5d879b
commit 49431b5eba
2 files changed
+11 -9

No files matched your search

+1 -9
View File
@@ -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) {