summaryrefslogtreecommitdiff
path: root/virtManager/object
diff options
context:
space:
mode:
authorCole Robinson <crobinso@redhat.com>2021-04-07 12:37:38 -0400
committerCole Robinson <crobinso@redhat.com>2021-05-22 14:56:10 -0400
commit66598893198835e316958945d937957496fcc982 (patch)
tree699ba4ebad0159578cda87c8f0061aef469ea1c9 /virtManager/object
parent167d2f2f8e6bc91a443137c28e96d8faad5aa141 (diff)
downloadvirt-manager-66598893198835e316958945d937957496fcc982.tar.gz
progress: Some internal API cleanup
* Simplify start() and end() function signature * Drop use of 'basename' and standardize on 'text' * Add vmmMeter.is_started() * Add vmmMeter.set_text() * Fix asyncjob UI to show text in the progress bar Signed-off-by: Cole Robinson <crobinso@redhat.com>
Diffstat (limited to 'virtManager/object')
-rw-r--r--virtManager/object/domain.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/virtManager/object/domain.py b/virtManager/object/domain.py
index 805e5576..0634324b 100644
--- a/virtManager/object/domain.py
+++ b/virtManager/object/domain.py
@@ -47,9 +47,8 @@ def start_job_progress_thread(vm, meter, progtext):
if not data_total:
continue # pragma: no cover
- if not meter.started:
- meter.start(size=data_total,
- text=progtext)
+ if not meter.is_started():
+ meter.start(progtext, data_total)
progress = data_total - data_remaining
meter.update(progress)