refactor: convert async functions to synchronous for UWP tool invocation

This commit is contained in:
Tunglies
2025-08-17 16:07:49 +08:00
parent 7b35ee513a
commit 1065f224a9
3 changed files with 6 additions and 4 deletions
+3 -3
View File
@@ -6,8 +6,8 @@ mod platform {
use super::CmdResult;
use crate::{core::win_uwp, wrap_err};
pub async fn invoke_uwp_tool() -> CmdResult {
wrap_err!(win_uwp::invoke_uwptools().await)
pub fn invoke_uwp_tool() -> CmdResult {
wrap_err!(win_uwp::invoke_uwptools())
}
}
@@ -24,5 +24,5 @@ mod platform {
/// Command exposed to Tauri
#[tauri::command]
pub async fn invoke_uwp_tool() -> CmdResult {
platform::invoke_uwp_tool().await
platform::invoke_uwp_tool()
}