feat(app): daemon status with Stop/Restart in settings
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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())?)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user