Skip to content

Commit

Permalink
turn off native-dialog by default
Browse files Browse the repository at this point in the history
  • Loading branch information
mariotaku committed Nov 22, 2023
1 parent 6294420 commit 1334581
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 37 deletions.
68 changes: 34 additions & 34 deletions src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "app"
name = "devman"
version = "0.1.0"
description = "Device Manager for LG webOS"
authors = ["Ningyuan Li"]
Expand Down Expand Up @@ -53,6 +53,7 @@ features = ["json"]
[dependencies.native-dialog]
version = "0.6.4"
features = ["windows_dpi_awareness", "windows_visual_styles"]
optional = true

[dependencies.openssl]
version = "0.10.57"
Expand All @@ -65,12 +66,12 @@ optional = true
[features]
# by default Tauri runs in production mode
# when `tauri dev` runs it is executed with `cargo run --no-default-features` if `devPath` is an URL
default = ["custom-protocol", "vendored-openssl", "single-instance"]
default = ["custom-protocol", "vendored-openssl"]
# this feature is used for production builds where `devPath` points to the filesystem
# DO NOT remove this
custom-protocol = ["tauri/custom-protocol"]
vendored-openssl = ["libssh-rs-sys/vendored-openssl", "reqwest/native-tls-vendored"]
single-instance = ["tauri-plugin-single-instance"]
desktop = ["tauri-plugin-single-instance", "native-dialog"]

[patch.crates-io]
libssh-rs = { git = "https://github.com/mariotaku/libssh-rs.git", branch = "feature/more-auth-options" }
Expand Down
2 changes: 2 additions & 0 deletions src-tauri/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use std::env;
use std::path::PathBuf;

use log::LevelFilter;
#[cfg(feature = "mobile")]
use native_dialog::{MessageDialog, MessageType};
use tauri::api::path::home_dir;
use tauri::{AppHandle, Manager, RunEvent, Runtime};
Expand Down Expand Up @@ -73,6 +74,7 @@ pub fn run() {
});
return Ok(());
});
#[cfg(feature = "mobile")]
if let Err(e) = result {
#[cfg(windows)]
if let tauri::Error::Runtime(ref e) = e {
Expand Down

0 comments on commit 1334581

Please sign in to comment.