fix aur not showing on preferences change

This commit is contained in:
Chris Cromer 2017-11-11 17:15:36 -03:00
parent fc47297852
commit 4209588710
3 changed files with 9 additions and 10 deletions

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Pamac\n" "Project-Id-Version: Pamac\n"
"Report-Msgid-Bugs-To: cromer@cromnix.org\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" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"

View File

@ -367,7 +367,10 @@ namespace Pamac {
#endif #endif
transaction.important_details_outpout.connect (on_important_details_outpout); transaction.important_details_outpout.connect (on_important_details_outpout);
transaction.finished.connect (on_transaction_finished); transaction.finished.connect (on_transaction_finished);
#if DISABLE_AUR
#else
transaction.save_pamac_config_finished.connect (on_save_pamac_config_finished); transaction.save_pamac_config_finished.connect (on_save_pamac_config_finished);
#endif
transaction.set_pkgreason_finished.connect (on_set_pkgreason_finished); transaction.set_pkgreason_finished.connect (on_set_pkgreason_finished);
transaction.generate_mirrors_list.connect (on_generate_mirrors_list); transaction.generate_mirrors_list.connect (on_generate_mirrors_list);
transaction.run_preferences_dialog_finished.connect (on_run_preferences_dialog_finished); transaction.run_preferences_dialog_finished.connect (on_run_preferences_dialog_finished);
@ -398,14 +401,12 @@ namespace Pamac {
} }
#if DISABLE_AUR #if DISABLE_AUR
void on_save_pamac_config_finished (bool recurse, uint64 refresh_period, bool no_update_hide_icon) {
}
#else #else
void on_save_pamac_config_finished (bool recurse, uint64 refresh_period, bool no_update_hide_icon, void on_save_pamac_config_finished (bool recurse, uint64 refresh_period, bool no_update_hide_icon,
bool enable_aur, bool search_aur) { bool enable_aur, bool search_aur, string aur_build_dir, bool check_aur_updates) {
support_aur (enable_aur); support_aur (transaction.enable_aur);
#endif
} }
#endif
void on_set_pkgreason_finished () { void on_set_pkgreason_finished () {
transaction.unlock (); transaction.unlock ();
@ -428,9 +429,7 @@ namespace Pamac {
#else #else
void support_aur (bool enable_aur) { void support_aur (bool enable_aur) {
if (enable_aur) { if (enable_aur) {
if (filters_stack.visible_child_name == "search") {
packages_stackswitcher.visible = true; packages_stackswitcher.visible = true;
}
} else { } else {
packages_stackswitcher.visible = false; packages_stackswitcher.visible = false;
} }