Commit 72c6d420 authored by guinux's avatar guinux

fix #701

parent b321354b
......@@ -271,8 +271,7 @@ namespace Pamac {
new_pamac_conf.insert ("KeepBuiltPkgs", new Variant.boolean (keep_built_pkgs));
new_pamac_conf.insert ("CheckAURUpdates", new Variant.boolean (check_aur_updates));
new_pamac_conf.insert ("CheckAURVCSUpdates", new Variant.boolean (check_aur_vcs_updates));
string new_aur_build_dir = Path.get_dirname (aur_build_dir);
new_pamac_conf.insert ("BuildDirectory", new Variant.string (new_aur_build_dir));
new_pamac_conf.insert ("BuildDirectory", new Variant.string (aur_build_dir));
#if ENABLE_SNAP
new_pamac_conf.insert ("EnableSnap", new Variant.boolean (enable_snap));
#endif
......
......@@ -161,17 +161,16 @@ namespace Pamac {
enable_aur_button.active = transaction.database.config.enable_aur;
aur_build_dir_label.sensitive = transaction.database.config.enable_aur;
aur_build_dir_file_chooser.sensitive = transaction.database.config.enable_aur;
string default_build_dir = "var/tmp";
string current_build_dir = Path.get_dirname (transaction.database.config.aur_build_dir);
string default_build_dir = "/var/tmp";
try {
aur_build_dir_file_chooser.add_shortcut_folder (default_build_dir);
if (current_build_dir != default_build_dir) {
aur_build_dir_file_chooser.add_shortcut_folder (current_build_dir);
if (transaction.database.config.aur_build_dir != default_build_dir) {
aur_build_dir_file_chooser.add_shortcut_folder (transaction.database.config.aur_build_dir);
}
} catch (GLib.Error e) {
critical ("%s\n", e.message);
}
aur_build_dir_file_chooser.select_filename (current_build_dir);
aur_build_dir_file_chooser.select_filename (transaction.database.config.aur_build_dir);
refresh_clean_build_files_button ();
keep_built_pkgs_checkbutton.active = transaction.database.config.keep_built_pkgs;
keep_built_pkgs_checkbutton.sensitive = transaction.database.config.enable_aur;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment