fix hooks progression display

This commit is contained in:
guinux 2016-07-02 10:25:07 +02:00
parent 5019f66b86
commit 2285ad17fd
2 changed files with 6 additions and 1 deletions

View File

@ -1674,7 +1674,7 @@ private void cb_event (Alpm.Event.Data data) {
details += data.hook_run_desc ?? "";
details += data.hook_run_position.to_string ();
details += data.hook_run_total.to_string ();
break;
break;
case Alpm.Event.Type.PACKAGE_OPERATION_START:
switch (data.package_operation_operation) {
case Alpm.Package.Operation.REMOVE:

View File

@ -1170,6 +1170,11 @@ namespace Pamac {
previous_percent = fraction;
progress_box.progressbar.fraction = fraction;
}
string textbar = "%s/%s".printf (details[2], details[3]);
if (textbar != previous_textbar) {
previous_textbar = textbar;
progress_box.progressbar.text = textbar;
}
if (details[1] != "") {
detailed_action = details[1];
} else {