mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-28 01:58:08 +03:00
createvm: Fix text progress with virt-bootstrap
It looks awkward after the text tweaks. Drop the semblance of progress reporting Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
20d3bf9484
commit
f2a04f1abc
@ -56,11 +56,6 @@ class _vmmMeter(virtinst.progress.Meter):
|
||||
# Public APIs specific to virt-manager code #
|
||||
#############################################
|
||||
|
||||
def change_meter_text(self, text):
|
||||
self._text = text
|
||||
self._tqdm.desc = text
|
||||
self._write()
|
||||
|
||||
def is_started(self):
|
||||
return bool(self._tqdm)
|
||||
|
||||
|
@ -2079,10 +2079,9 @@ class vmmCreateVM(vmmGObjectUI):
|
||||
import logging
|
||||
import virtBootstrap
|
||||
|
||||
meter.start(_("Bootstraping container"), 100)
|
||||
meter.start(_("Bootstraping container"), None)
|
||||
def progress_update_cb(prog):
|
||||
meter.change_meter_text(_(prog['status']))
|
||||
meter.update(prog['value'])
|
||||
meter.start(_(prog['status']), None)
|
||||
|
||||
asyncjob.details_enable()
|
||||
# Use logging filter to show messages of the progreess on the GUI
|
||||
|
Loading…
x
Reference in New Issue
Block a user