Commit 7e0c9eed authored by guinux's avatar guinux

fix unclosable after generate mirrorlist

parent 961235a8
......@@ -355,6 +355,7 @@ namespace Pamac {
transaction.write_pamac_config_finished.connect (on_write_pamac_config_finished);
transaction.set_pkgreason_finished.connect (on_set_pkgreason_finished);
transaction.generate_mirrors_list.connect (on_generate_mirrors_list);
transaction.generate_mirrors_list_finished.connect (on_generate_mirrors_list_finished);
transaction.run_preferences_dialog_finished.connect (on_run_preferences_dialog_finished);
transaction.get_updates_progress.connect (on_get_updates_progress);
transaction.get_updates_finished.connect (on_get_updates_finished);
......@@ -2618,6 +2619,10 @@ namespace Pamac {
show_transaction_infobox ();
}
void on_generate_mirrors_list_finished () {
generate_mirrors_list = false;
}
void on_transaction_finished (bool success) {
transaction.refresh_handle ();
if (main_stack.visible_child_name == "details") {
......
......@@ -181,6 +181,7 @@ namespace Pamac {
bool enable_aur, string aur_build_dir, bool check_aur_updates);
public signal void write_alpm_config_finished (bool checkspace);
public signal void generate_mirrors_list ();
public signal void generate_mirrors_list_finished ();
public signal void run_preferences_dialog_finished ();
public signal void get_updates_progress (uint percent);
public signal void get_updates_finished (Updates updates);
......@@ -1845,6 +1846,7 @@ namespace Pamac {
system_daemon.generate_mirrors_list_data.disconnect (on_generate_mirrors_list_data);
system_daemon.generate_mirrors_list_finished.disconnect (on_generate_mirrors_list_finished);
reset_progress_box ("");
generate_mirrors_list_finished ();
}
void connecting_user_daemon () {
......
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