Attempt to fix control widget again

This commit is contained in:
世界
2026-02-05 02:37:02 +08:00
parent 2e682d746c
commit 20f2482376
+2 -2
View File
@@ -12,7 +12,7 @@ struct ServiceToggleControl: ControlWidget {
ControlWidgetToggle(
"sing-box",
isOn: value,
action: ToggleServiceIntent()
action: ToggleServiceControlIntent()
) { isOn in
Label(isOn ? "Running" : "Stopped", systemImage: "shippingbox.fill")
// .controlWidgetActionHint(isOn ? "Stop" : "Start")
@@ -39,7 +39,7 @@ extension ServiceToggleControl {
}
}
struct ToggleServiceIntent: SetValueIntent {
struct ToggleServiceControlIntent: SetValueIntent {
static var title: LocalizedStringResource = "Toggle sing-box"
@Parameter(title: "Running")