Refresh Databases option now forces the refresh

This commit is contained in:
guinux 2017-05-13 23:10:19 +02:00
parent fa9670a85b
commit 63fa45284a
2 changed files with 7 additions and 3 deletions

View File

@ -1684,7 +1684,7 @@ namespace Pamac {
void on_refresh_button_clicked () { void on_refresh_button_clicked () {
this.get_window ().set_cursor (new Gdk.Cursor.for_display (Gdk.Display.get_default (), Gdk.CursorType.WATCH)); this.get_window ().set_cursor (new Gdk.Cursor.for_display (Gdk.Display.get_default (), Gdk.CursorType.WATCH));
refreshing = true; refreshing = true;
transaction.start_refresh (false); transaction.start_refresh (true);
apply_button.sensitive = false; apply_button.sensitive = false;
transaction_infobox.show_all (); transaction_infobox.show_all ();
} }

View File

@ -107,7 +107,11 @@ namespace Pamac {
// A timeout is needed to let the time to the daemon to deal // A timeout is needed to let the time to the daemon to deal
// with potential other package manager process running. // with potential other package manager process running.
Timeout.add (500, () => { Timeout.add (500, () => {
on_refresh_button_clicked (); this.get_window ().set_cursor (new Gdk.Cursor.for_display (Gdk.Display.get_default (), Gdk.CursorType.WATCH));
transaction_infobox.show_all ();
details_button.sensitive = true;
cancel_button.sensitive = true;
transaction.start_refresh (false);
return false; return false;
}); });
@ -240,7 +244,7 @@ namespace Pamac {
apply_button.sensitive = false; apply_button.sensitive = false;
details_button.sensitive = true; details_button.sensitive = true;
cancel_button.sensitive = true; cancel_button.sensitive = true;
transaction.start_refresh (false); transaction.start_refresh (true);
} }
[GtkCallback] [GtkCallback]