Browse Source

fix aur not showing on preferences change

tags/v6.6.0^2
Chris Cromer 2 years ago
parent
commit
4209588710
3 changed files with 9 additions and 10 deletions
  1. +1
    -1
      po/pamac.pot
  2. +7
    -8
      src/pamac-manager/manager_window.vala
  3. +1
    -1
      src/transaction.vala

+ 1
- 1
po/pamac.pot View File

@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Pamac\n"
"Report-Msgid-Bugs-To: cromer@cromnix.org\n"
"POT-Creation-Date: 2017-11-11 15:55-0300\n"
"POT-Creation-Date: 2017-11-11 17:09-0300\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"


+ 7
- 8
src/pamac-manager/manager_window.vala View File

@@ -367,7 +367,10 @@ namespace Pamac {
#endif
transaction.important_details_outpout.connect (on_important_details_outpout);
transaction.finished.connect (on_transaction_finished);
#if DISABLE_AUR
#else
transaction.save_pamac_config_finished.connect (on_save_pamac_config_finished);
#endif
transaction.set_pkgreason_finished.connect (on_set_pkgreason_finished);
transaction.generate_mirrors_list.connect (on_generate_mirrors_list);
transaction.run_preferences_dialog_finished.connect (on_run_preferences_dialog_finished);
@@ -398,14 +401,12 @@ namespace Pamac {
}

#if DISABLE_AUR
void on_save_pamac_config_finished (bool recurse, uint64 refresh_period, bool no_update_hide_icon) {
}
#else
void on_save_pamac_config_finished (bool recurse, uint64 refresh_period, bool no_update_hide_icon,
bool enable_aur, bool search_aur) {
support_aur (enable_aur);
#endif
bool enable_aur, bool search_aur, string aur_build_dir, bool check_aur_updates) {
support_aur (transaction.enable_aur);
}
#endif

void on_set_pkgreason_finished () {
transaction.unlock ();
@@ -428,9 +429,7 @@ namespace Pamac {
#else
void support_aur (bool enable_aur) {
if (enable_aur) {
if (filters_stack.visible_child_name == "search") {
packages_stackswitcher.visible = true;
}
packages_stackswitcher.visible = true;
} else {
packages_stackswitcher.visible = false;
}


+ 1
- 1
src/transaction.vala View File

@@ -1926,7 +1926,7 @@ namespace Pamac {
void on_save_pamac_config_finished (bool recurse, uint64 refresh_period, bool no_update_hide_icon) {
#else
void on_save_pamac_config_finished (bool recurse, uint64 refresh_period, bool no_update_hide_icon,
bool enable_aur, bool search_aur, string aur_build_dir, bool check_aur_updates) {
bool enable_aur, bool search_aur, string aur_build_dir, bool check_aur_updates) {
#endif
system_daemon.save_pamac_config_finished.disconnect (on_save_pamac_config_finished);
pamac_config.reload ();


Loading…
Cancel
Save