Menu: add icons to debug submenu
This commit is contained in:
@@ -43,32 +43,67 @@ struct MenuContent: View {
|
|||||||
}
|
}
|
||||||
if self.state.debugPaneEnabled {
|
if self.state.debugPaneEnabled {
|
||||||
Menu("Debug") {
|
Menu("Debug") {
|
||||||
Button("Open Config Folder") { DebugActions.openConfigFolder() }
|
Button {
|
||||||
Button("Run Health Check Now") {
|
DebugActions.openConfigFolder()
|
||||||
|
} label: {
|
||||||
|
Label("Open Config Folder", systemImage: "folder")
|
||||||
|
}
|
||||||
|
Button {
|
||||||
Task { await DebugActions.runHealthCheckNow() }
|
Task { await DebugActions.runHealthCheckNow() }
|
||||||
|
} label: {
|
||||||
|
Label("Run Health Check Now", systemImage: "stethoscope")
|
||||||
}
|
}
|
||||||
Button("Send Test Heartbeat") {
|
Button {
|
||||||
Task { _ = await DebugActions.sendTestHeartbeat() }
|
Task { _ = await DebugActions.sendTestHeartbeat() }
|
||||||
|
} label: {
|
||||||
|
Label("Send Test Heartbeat", systemImage: "waveform.path.ecg")
|
||||||
}
|
}
|
||||||
Button(DebugActions.verboseLoggingEnabledMain
|
Button {
|
||||||
? "Verbose Logging (Main): On"
|
|
||||||
: "Verbose Logging (Main): Off")
|
|
||||||
{
|
|
||||||
Task { _ = await DebugActions.toggleVerboseLoggingMain() }
|
Task { _ = await DebugActions.toggleVerboseLoggingMain() }
|
||||||
|
} label: {
|
||||||
|
Label(
|
||||||
|
DebugActions.verboseLoggingEnabledMain
|
||||||
|
? "Verbose Logging (Main): On"
|
||||||
|
: "Verbose Logging (Main): Off",
|
||||||
|
systemImage: "text.alignleft")
|
||||||
|
}
|
||||||
|
Button {
|
||||||
|
DebugActions.openSessionStore()
|
||||||
|
} label: {
|
||||||
|
Label("Open Session Store", systemImage: "externaldrive")
|
||||||
}
|
}
|
||||||
Button("Open Session Store") { DebugActions.openSessionStore() }
|
|
||||||
Divider()
|
Divider()
|
||||||
Button("Open Agent Events…") { DebugActions.openAgentEventsWindow() }
|
Button {
|
||||||
Button("Open Log") { DebugActions.openLog() }
|
DebugActions.openAgentEventsWindow()
|
||||||
Button("Send Debug Voice Text") {
|
} label: {
|
||||||
|
Label("Open Agent Events…", systemImage: "bolt.horizontal.circle")
|
||||||
|
}
|
||||||
|
Button {
|
||||||
|
DebugActions.openLog()
|
||||||
|
} label: {
|
||||||
|
Label("Open Log", systemImage: "doc.text.magnifyingglass")
|
||||||
|
}
|
||||||
|
Button {
|
||||||
Task { _ = await DebugActions.sendDebugVoice() }
|
Task { _ = await DebugActions.sendDebugVoice() }
|
||||||
|
} label: {
|
||||||
|
Label("Send Debug Voice Text", systemImage: "waveform.circle")
|
||||||
}
|
}
|
||||||
Button("Send Test Notification") {
|
Button {
|
||||||
Task { await DebugActions.sendTestNotification() }
|
Task { await DebugActions.sendTestNotification() }
|
||||||
|
} label: {
|
||||||
|
Label("Send Test Notification", systemImage: "bell")
|
||||||
}
|
}
|
||||||
Divider()
|
Divider()
|
||||||
Button("Restart Gateway") { DebugActions.restartGateway() }
|
Button {
|
||||||
Button("Restart App") { DebugActions.restartApp() }
|
DebugActions.restartGateway()
|
||||||
|
} label: {
|
||||||
|
Label("Restart Gateway", systemImage: "arrow.clockwise")
|
||||||
|
}
|
||||||
|
Button {
|
||||||
|
DebugActions.restartApp()
|
||||||
|
} label: {
|
||||||
|
Label("Restart App", systemImage: "arrow.triangle.2.circlepath")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Button("Quit") { NSApplication.shared.terminate(nil) }
|
Button("Quit") { NSApplication.shared.terminate(nil) }
|
||||||
|
|||||||
Reference in New Issue
Block a user