@@ -53,13 +53,12 @@ pub fn set_hotkeys(
5353 // 如果 last_path = true 且 last_used_dir 非空,使用 last_used_dir
5454 // 否则使用 save_path(配置文件中的 dir)
5555 let use_last_path = settings_collected. path . last_path ;
56- let effective_save_path = if use_last_path
57- && !settings_collected. path . last_used_dir . as_os_str ( ) . is_empty ( )
58- {
59- settings_collected. path . last_used_dir . clone ( )
60- } else {
61- save_path. clone ( )
62- } ;
56+ let effective_save_path =
57+ if use_last_path && !settings_collected. path . last_used_dir . as_os_str ( ) . is_empty ( ) {
58+ settings_collected. path . last_used_dir . clone ( )
59+ } else {
60+ save_path. clone ( )
61+ } ;
6362
6463 // 创建共享的当前保存路径状态
6564 let current_save_path: Arc < Mutex < PathBuf > > = Arc :: new ( Mutex :: new ( effective_save_path) ) ;
@@ -87,7 +86,8 @@ pub fn set_hotkeys(
8786 guard. clone ( )
8887 } ;
8988
90- let args = crate :: file_ops:: build_capture_args ( comp_val, scale_val, & path_to_use, false ) ;
89+ let args =
90+ crate :: file_ops:: build_capture_args ( comp_val, scale_val, & path_to_use, false ) ;
9191 operate_exe ( & exe_path_clone, args, gui_clone. clone ( ) ) ;
9292 } ,
9393 ) ;
@@ -204,7 +204,8 @@ pub fn set_hotkeys(
204204 guard. clone ( )
205205 } ;
206206
207- let args = crate :: file_ops:: build_capture_args ( comp_val2, scale_val2, & path_to_use, true ) ;
207+ let args =
208+ crate :: file_ops:: build_capture_args ( comp_val2, scale_val2, & path_to_use, true ) ;
208209 operate_exe ( & exe_path_clone, args, gui_clone. clone ( ) ) ;
209210 } ,
210211 ) ;
0 commit comments