mirror of
https://github.com/nimbold/Firelink.git
synced 2026-08-07 18:03:23 +00:00
fix(scheduler): wire post queue action on stop time and remove unused field warning
This commit is contained in:
@@ -895,8 +895,7 @@ fn set_prevent_sleep(state: tauri::State<'_, AppState>, prevent: bool) {
|
||||
}
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
fn perform_system_action(action: crate::ipc::PostQueueAction) -> Result<(), String> {
|
||||
pub(crate) fn execute_system_action(action: crate::ipc::PostQueueAction) -> Result<(), String> {
|
||||
match action {
|
||||
crate::ipc::PostQueueAction::Shutdown => {
|
||||
system_shutdown::shutdown().map_err(|e| e.to_string())
|
||||
@@ -911,6 +910,11 @@ fn perform_system_action(action: crate::ipc::PostQueueAction) -> Result<(), Stri
|
||||
}
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
fn perform_system_action(action: crate::ipc::PostQueueAction) -> Result<(), String> {
|
||||
execute_system_action(action)
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
async fn set_concurrent_limit(state: tauri::State<'_, AppState>, limit: usize) -> Result<(), String> {
|
||||
let _ = rpc_call(
|
||||
|
||||
Reference in New Issue
Block a user