File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ dialog = "0.3.0"
41
41
objc = " 0.2.7"
42
42
tauri-plugin-deep-link = " 0.1.2"
43
43
lazy_static = " 1.4"
44
- dialog = " 0.3 .0"
44
+ native- dialog = " 0.7 .0"
45
45
46
46
[features ]
47
47
# by default Tauri runs in production mode
Original file line number Diff line number Diff line change @@ -27,10 +27,10 @@ extern crate objc;
27
27
28
28
use clipboard_files;
29
29
30
- #[ cfg( any ( target_os = "macos" , target_os = " linux") ) ]
30
+ #[ cfg( target_os = "linux" ) ]
31
31
use dialog:: DialogBox ;
32
32
33
- #[ cfg( target_os = "windows" ) ]
33
+ #[ cfg( any ( target_os = "macos" , target_os = " windows") ) ]
34
34
use native_dialog:: { MessageDialog , MessageType } ;
35
35
36
36
use regex:: Regex ;
@@ -285,7 +285,7 @@ fn main() {
285
285
) ;
286
286
287
287
let mut should_log_to_bugsnag = false ;
288
- #[ cfg( any ( target_os = "macos" , target_os = " linux") ) ]
288
+ #[ cfg( target_os = "linux" ) ]
289
289
{
290
290
let choice = dialog:: Question :: new ( & error_message)
291
291
. title ( "Oops! Phoenix Code Crashed :(" )
@@ -296,7 +296,7 @@ fn main() {
296
296
}
297
297
}
298
298
299
- #[ cfg( target_os = "windows" ) ]
299
+ #[ cfg( any ( target_os = "macos" , target_os = " windows") ) ]
300
300
{
301
301
should_log_to_bugsnag = MessageDialog :: new ( )
302
302
. set_type ( MessageType :: Error )
You can’t perform that action at this time.
0 commit comments