mirror of
https://github.com/xlmnxp/blue-recorder.git
synced 2025-04-04 16:54:55 +03:00
change uri to path in folder chooser
This commit is contained in:
parent
9bb4079c94
commit
b2c4dbe08f
@ -12,6 +12,7 @@ fn default() {
|
|||||||
set_default_video_bitrate(&format.to_string());
|
set_default_video_bitrate(&format.to_string());
|
||||||
set_default_frame(&format.to_string());
|
set_default_frame(&format.to_string());
|
||||||
}
|
}
|
||||||
|
|
||||||
set("default", "areacheck", "1");
|
set("default", "areacheck", "1");
|
||||||
set("default", "audiobitrate", "0");
|
set("default", "audiobitrate", "0");
|
||||||
set("default", "audio_input_check", "1");
|
set("default", "audio_input_check", "1");
|
||||||
@ -20,10 +21,9 @@ fn default() {
|
|||||||
set("default", "filename", "");
|
set("default", "filename", "");
|
||||||
set("default", "followmousecheck", "0");
|
set("default", "followmousecheck", "0");
|
||||||
set("default", "format", "0");
|
set("default", "format", "0");
|
||||||
set(
|
set("default",
|
||||||
"default",
|
|
||||||
"folder",
|
"folder",
|
||||||
String::from(
|
&String::from(
|
||||||
glib::get_user_special_dir(glib::UserDirectory::Videos)
|
glib::get_user_special_dir(glib::UserDirectory::Videos)
|
||||||
.unwrap_or_else(|| {
|
.unwrap_or_else(|| {
|
||||||
PathBuf::from(
|
PathBuf::from(
|
||||||
@ -35,7 +35,6 @@ fn default() {
|
|||||||
.to_str()
|
.to_str()
|
||||||
.unwrap(),
|
.unwrap(),
|
||||||
)
|
)
|
||||||
.as_str(),
|
|
||||||
);
|
);
|
||||||
set("default", "hidecheck", "0");
|
set("default", "hidecheck", "0");
|
||||||
set("default", "mode", "screen");
|
set("default", "mode", "screen");
|
||||||
|
@ -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_transient_for(Some(&main_window));
|
||||||
folder_chooser_native.set_modal(true);
|
folder_chooser_native.set_modal(true);
|
||||||
folder_chooser_native
|
folder_chooser_native
|
||||||
.set_file(&File::for_uri(&config_management::get(
|
.set_file(&File::for_path(&config_management::get(
|
||||||
"default", "folder",
|
"default", "folder",
|
||||||
)))
|
)))
|
||||||
.unwrap();
|
.unwrap();
|
||||||
let folder_chooser = Some(File::for_uri(&config_management::get(
|
let folder_chooser = Some(File::for_path(&config_management::get(
|
||||||
"default", "folder",
|
"default", "folder",
|
||||||
)))
|
)))
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
Loading…
Reference in New Issue
Block a user