diff --git a/src/config_management.rs b/src/config_management.rs index 291515a..60a8168 100644 --- a/src/config_management.rs +++ b/src/config_management.rs @@ -12,6 +12,7 @@ fn default() { set_default_video_bitrate(&format.to_string()); set_default_frame(&format.to_string()); } + set("default", "areacheck", "1"); set("default", "audiobitrate", "0"); set("default", "audio_input_check", "1"); @@ -20,22 +21,20 @@ fn default() { set("default", "filename", ""); set("default", "followmousecheck", "0"); set("default", "format", "0"); - set( - "default", + set("default", "folder", - String::from( - glib::get_user_special_dir(glib::UserDirectory::Videos) - .unwrap_or_else(|| { - PathBuf::from( - std::env::var("HOME") - .unwrap_or_else(|_| "/".to_string()) - .as_str(), - ) - }) - .to_str() - .unwrap(), - ) - .as_str(), + &String::from( + glib::get_user_special_dir(glib::UserDirectory::Videos) + .unwrap_or_else(|| { + PathBuf::from( + std::env::var("HOME") + .unwrap_or_else(|_| "/".to_string()) + .as_str(), + ) + }) + .to_str() + .unwrap(), + ) ); set("default", "hidecheck", "0"); set("default", "mode", "screen"); diff --git a/src/ui.rs b/src/ui.rs index f0f64ff..8d1db1d 100644 --- a/src/ui.rs +++ b/src/ui.rs @@ -474,11 +474,11 @@ fn build_ui(application: &Application, error_dialog: MessageDialog, error_messag folder_chooser_native.set_transient_for(Some(&main_window)); folder_chooser_native.set_modal(true); folder_chooser_native - .set_file(&File::for_uri(&config_management::get( + .set_file(&File::for_path(&config_management::get( "default", "folder", ))) .unwrap(); - let folder_chooser = Some(File::for_uri(&config_management::get( + let folder_chooser = Some(File::for_path(&config_management::get( "default", "folder", ))) .unwrap();