fix hooks progression display
This commit is contained in:
parent
5019f66b86
commit
2285ad17fd
@ -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:
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user