This commit is contained in:
scachemaille
2016-08-24 15:28:38 +02:00
parent ec7dd3a3a9
commit 8df96bed80
3 changed files with 13 additions and 5 deletions

View File

@@ -53,7 +53,7 @@ namespace Pamac {
public void reload () {
// set default options
choosen_generation_method = "rank";
choosen_country = dgettext (null, "Worldwide");
choosen_country = "ALL";
mirrorlists_dir = "/etc/pacman.d/mirrors";
parse_file (conf_path);
}
@@ -123,7 +123,7 @@ namespace Pamac {
}
} else if (line.contains ("OnlyCountry")) {
if (new_conf.lookup_extended ("OnlyCountry", null, out variant)) {
if (variant.get_string () == dgettext (null, "Worldwide")) {
if (variant.get_string () == "ALL") {
data.append ("#%s\n".printf (line));
} else {
data.append ("OnlyCountry=%s\n".printf (variant.get_string ()));