diff options
author | Adriaan de Groot <groot@kde.org> | 2020-04-06 17:06:53 +0200 |
---|---|---|
committer | Adriaan de Groot <groot@kde.org> | 2020-04-06 17:06:53 +0200 |
commit | facf5af589d0c9f60270929715f7cefb905d5ae1 (patch) | |
tree | 374d3c8bcfd33f615d2f53ff34094715222969b6 | |
parent | af0d04d52357a8f05920a4859c0a19f739c1fc00 (diff) |
[unpackfs] Don't jump back in progress while counting
-rw-r--r-- | src/modules/unpackfs/main.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/unpackfs/main.py b/src/modules/unpackfs/main.py index 1a4059848..50ee5b1a0 100644 --- a/src/modules/unpackfs/main.py +++ b/src/modules/unpackfs/main.py @@ -309,10 +309,10 @@ class UnpackOperation: source_mount_path = tempfile.mkdtemp() try: - job.setprogress(0.0) + complete = 0 for entry in self.entries: status = _("Starting to unpack {}").format(entry.source) - job.setprogress(0.0) + job.setprogress( ( 1.0 * complete ) / len(self.entries) ) entry.do_mount(source_mount_path) entry.do_count() # Fill in the entry.total |