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"
4141objc = " 0.2.7"
4242tauri-plugin-deep-link = " 0.1.2"
4343lazy_static = " 1.4"
44- dialog = " 0.3 .0"
44+ native- dialog = " 0.7 .0"
4545
4646[features ]
4747# by default Tauri runs in production mode
Original file line number Diff line number Diff line change @@ -27,10 +27,10 @@ extern crate objc;
2727
2828use clipboard_files;
2929
30- #[ cfg( any ( target_os = "macos" , target_os = " linux") ) ]
30+ #[ cfg( target_os = "linux" ) ]
3131use dialog:: DialogBox ;
3232
33- #[ cfg( target_os = "windows" ) ]
33+ #[ cfg( any ( target_os = "macos" , target_os = " windows") ) ]
3434use native_dialog:: { MessageDialog , MessageType } ;
3535
3636use regex:: Regex ;
@@ -285,7 +285,7 @@ fn main() {
285285 ) ;
286286
287287 let mut should_log_to_bugsnag = false ;
288- #[ cfg( any ( target_os = "macos" , target_os = " linux") ) ]
288+ #[ cfg( target_os = "linux" ) ]
289289 {
290290 let choice = dialog:: Question :: new ( & error_message)
291291 . title ( "Oops! Phoenix Code Crashed :(" )
@@ -296,7 +296,7 @@ fn main() {
296296 }
297297 }
298298
299- #[ cfg( target_os = "windows" ) ]
299+ #[ cfg( any ( target_os = "macos" , target_os = " windows") ) ]
300300 {
301301 should_log_to_bugsnag = MessageDialog :: new ( )
302302 . set_type ( MessageType :: Error )
You can’t perform that action at this time.
0 commit comments