feat(app): daemon status with Stop/Restart in settings

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-14 18:57:53 +07:00
parent a2087a0de5
commit 9ca1ff3bc5
4 changed files with 59 additions and 4 deletions
+5
View File
@@ -346,3 +346,8 @@ pub async fn set_config(
) -> Result<Value, String> {
data_of(state.request(Cmd::SetConfig { default_shell, font_family, font_size, theme, accent }).await.map_err(|e| e.to_string())?)
}
#[tauri::command]
pub async fn shutdown_daemon(state: BridgeState<'_>) -> Result<Value, String> {
data_of(state.request(Cmd::Shutdown).await.map_err(|e| e.to_string())?)
}
+1
View File
@@ -55,6 +55,7 @@ pub fn run() {
bridge::health,
bridge::get_config,
bridge::set_config,
bridge::shutdown_daemon,
])
.run(tauri::generate_context!())
.expect("error while running spacesh");