Skip to content

Commit

Permalink
Refresh Databases option now forces the refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
guinux committed May 13, 2017
1 parent fa9670a commit 63fa452
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/manager_window.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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 ();
}
Expand Down
8 changes: 6 additions & 2 deletions src/updater_window.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});

Expand Down Expand Up @@ -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]
Expand Down

0 comments on commit 63fa452

Please sign in to comment.