feat: update to alpha.17, typed mobile plugin IPC arguments (#676)

Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
This commit is contained in:
Lucas Fernandes NogueiraandAmr Bashir authored and GitHub committed 2023-10-29 16:06:44 -03:00
1 parent 76cfdc32b4
commit e438e0a62d
158 files changed
+1677 -1658

No files matched your search

+8 -2
View File
@@ -56,7 +56,10 @@ macro_rules! run_dialog {
($e:expr, $h: ident) => {{
std::thread::spawn(move || {
let response = tauri::async_runtime::block_on($e);
$h(response);
$h(!matches!(
response,
rfd::MessageDialogResult::No | rfd::MessageDialogResult::Cancel
));
});
}};
}
@@ -68,7 +71,10 @@ macro_rules! run_dialog {
let context = glib::MainContext::default();
context.invoke_with_priority(glib::PRIORITY_HIGH, move || {
let response = $e;
$h(response);
$h(!matches!(
response,
rfd::MessageDialogResult::No | rfd::MessageDialogResult::Cancel
));
});
});
}};