Mountain/IPC/WindServiceHandlers/NativeHost/ShowOpenDialog.rs
1#![allow(non_snake_case, unused_variables, dead_code, unused_imports)]
2
3//! Wire method: `nativeHost:showOpenDialog`.
4//!
5//! Delegates to `NativeDialog::ShowOpenDialog::ShowOpenDialog`. This atom
6//! preserves the stable handler name while the actual file/folder picker
7//! lives under the NativeDialog domain (filter parsing, DialogFilter DTO,
8//! etc. each in their own atom). Prior stub returned `canceled:true`, which
9//! silently broke "Install from VSIX…"; delegation restores correctness.
10
11use serde_json::Value;
12use tauri::AppHandle;
13
14pub async fn NativeShowOpenDialog(ApplicationHandle:AppHandle, Arguments:Vec<Value>) -> Result<Value, String> {
15 crate::IPC::WindServiceHandlers::NativeDialog::ShowOpenDialog::ShowOpenDialog(ApplicationHandle, Arguments).await
16}