From 4209588710b53c02347eaeca370ad672fa717d93 Mon Sep 17 00:00:00 2001 From: Chris Cromer Date: Sat, 11 Nov 2017 17:15:36 -0300 Subject: [PATCH] fix aur not showing on preferences change --- po/pamac.pot | 2 +- src/pamac-manager/manager_window.vala | 15 +++++++-------- src/transaction.vala | 2 +- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/po/pamac.pot b/po/pamac.pot index 9330e2c..a07a4f2 100644 --- a/po/pamac.pot +++ b/po/pamac.pot @@ -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 \n" "Language-Team: LANGUAGE \n" diff --git a/src/pamac-manager/manager_window.vala b/src/pamac-manager/manager_window.vala index d1a8865..868b457 100644 --- a/src/pamac-manager/manager_window.vala +++ b/src/pamac-manager/manager_window.vala @@ -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; } diff --git a/src/transaction.vala b/src/transaction.vala index b0af570..bec2f92 100644 --- a/src/transaction.vala +++ b/src/transaction.vala @@ -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 ();