File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,9 +14,7 @@ use tauri_plugin_updater::UpdaterExt;
1414fn set_window_opacity ( app : AppHandle , opacity : f64 ) -> Result < ( ) , String > {
1515 #[ cfg( target_os = "macos" ) ]
1616 {
17- let window = app
18- . get_webview_window ( "main" )
19- . ok_or ( "Window not found" ) ?;
17+ let window = app. get_webview_window ( "main" ) . ok_or ( "Window not found" ) ?;
2018 let ns_win = window. ns_window ( ) . map_err ( |e| e. to_string ( ) ) ?;
2119 unsafe {
2220 let _: ( ) =
@@ -47,7 +45,10 @@ pub fn run() {
4745 . plugin ( tauri_plugin_fs:: init ( ) )
4846 . plugin ( tauri_plugin_process:: init ( ) )
4947 . plugin ( tauri_plugin_dialog:: init ( ) )
50- . invoke_handler ( tauri:: generate_handler![ extend_fs_scope, set_window_opacity] )
48+ . invoke_handler ( tauri:: generate_handler![
49+ extend_fs_scope,
50+ set_window_opacity
51+ ] )
5152 . setup ( |app| {
5253 #[ cfg( desktop) ]
5354 app. handle ( )
@@ -124,10 +125,7 @@ pub fn run() {
124125 Err ( e) => {
125126 handle
126127 . dialog ( )
127- . message ( format ! (
128- "Could not check for updates: {}" ,
129- e
130- ) )
128+ . message ( format ! ( "Could not check for updates: {}" , e) )
131129 . title ( "Update Error" )
132130 . kind ( MessageDialogKind :: Error )
133131 . blocking_show ( ) ;
You can’t perform that action at this time.
0 commit comments