Skip to content
Snippets Groups Projects
Commit 9d88cf6f authored by guinux's avatar guinux
Browse files

fix #665

parent 8efd32a0
No related branches found
No related tags found
No related merge requests found
......@@ -890,6 +890,7 @@ namespace Pamac {
void on_mark_explicit_button_clicked (Gtk.Button button) {
transaction.set_pkgreason (current_package_displayed.name, 0); //Alpm.Package.Reason.EXPLICIT
refresh_details ();
}
Gtk.Widget populate_details_grid (string detail_type, string detail, Gtk.Widget? previous_widget) {
......
......@@ -234,13 +234,14 @@ namespace Pamac {
}
public bool set_pkgreason (string pkgname, uint reason) {
bool success = false;
try {
return transaction_interface.set_pkgreason (pkgname, reason);
success = transaction_interface.set_pkgreason (pkgname, reason);
} catch (Error e) {
emit_error ("Daemon Error", {"set_pkgreason: %s".printf (e.message)});
}
database.refresh ();
return false;
return success;
}
public void download_updates () {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment