Fix: Use BTRFS mode by default on BTRFS system

This commit is contained in:
Tony George 2020-11-16 16:52:35 +05:30
parent 920a4781d6
commit cef91bcd5d

View File

@ -3104,12 +3104,13 @@ public class Main : GLib.Object{
// check if first run -----------------------
var f = File.new_for_path(this.app_conf_path);
if (!f.query_exists()) {
if (file_exists(app_conf_path_default)){
// copy default file
file_copy(app_conf_path_default, app_conf_path);
}
if (!f.query_exists()) {
set_first_run_flag();
return;
}
// load settings from config file --------------------------
@ -3125,12 +3126,12 @@ public class Main : GLib.Object{
bool do_first_run = json_get_bool(config, "do_first_run", false); // false as default
btrfs_mode = json_get_bool(config, "btrfs_mode", false); // false as default
if (do_first_run){
set_first_run_flag();
}
btrfs_mode = json_get_bool(config, "btrfs_mode", false); // false as default
if (config.has_member("include_btrfs_home")){
include_btrfs_home_for_backup = json_get_bool(config, "include_btrfs_home", include_btrfs_home_for_backup);
}