mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-10-12 22:47:08 +02:00
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:
1 parent
76cfdc32b4
commit
e438e0a62d
158 files changed
+1677
-1658
No files matched your search
@@ -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
|
||||
));
|
||||
});
|
||||
});
|
||||
}};
|
||||
|
||||
Reference in new issue
Block a user