Refresh Databases option now forces the refresh

Este commit está contenido en:
guinux
2017-05-13 23:10:19 +02:00
padre fa9670a85b
commit 63fa45284a
Se han modificado 2 ficheros con 7 adiciones y 3 borrados

Ver fichero

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

Ver fichero

@@ -107,7 +107,11 @@ namespace Pamac {
// A timeout is needed to let the time to the daemon to deal
// with potential other package manager process running.
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;
});
@@ -240,7 +244,7 @@ namespace Pamac {
apply_button.sensitive = false;
details_button.sensitive = true;
cancel_button.sensitive = true;
transaction.start_refresh (false);
transaction.start_refresh (true);
}
[GtkCallback]