mirror of
https://github.com/xlmnxp/blue-recorder.git
synced 2025-04-03 08:14:55 +03:00
fix default folder
This commit is contained in:
parent
1a34e10ca8
commit
d17b5dc80d
@ -4,7 +4,6 @@ extern crate ini;
|
|||||||
|
|
||||||
use glib::get_user_data_dir;
|
use glib::get_user_data_dir;
|
||||||
use ini::Ini;
|
use ini::Ini;
|
||||||
use std::ops::Add;
|
|
||||||
use std::path::{Path, PathBuf};
|
use std::path::{Path, PathBuf};
|
||||||
|
|
||||||
// Default values
|
// Default values
|
||||||
@ -24,8 +23,7 @@ fn default() {
|
|||||||
set(
|
set(
|
||||||
"default",
|
"default",
|
||||||
"folder",
|
"folder",
|
||||||
String::from("file://")
|
String::from(
|
||||||
.add(
|
|
||||||
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(
|
||||||
|
Loading…
Reference in New Issue
Block a user