Menu: add debug submenu actions

This commit is contained in:
Peter Steinberger
2025-12-09 17:57:21 +01:00
parent 7017756140
commit 80c7b04831
3 changed files with 130 additions and 102 deletions

View File

@@ -41,6 +41,20 @@ struct MenuContent: View {
if let updater, updater.isAvailable {
Button("Check for Updates…") { updater.checkForUpdates(nil) }
}
if self.state.debugPaneEnabled {
Menu("Debug") {
Button("Open Agent Events…") { DebugActions.openAgentEventsWindow() }
Button("Open Log") { DebugActions.openLog() }
Button("Send Debug Voice Text") {
Task { _ = await DebugActions.sendDebugVoice() }
}
Button("Send Test Notification") {
Task { await DebugActions.sendTestNotification() }
}
Divider()
Button("Restart Gateway") { DebugActions.restartGateway() }
}
}
Button("Quit") { NSApplication.shared.terminate(nil) }
}
.task(id: self.state.swabbleEnabled) {