]> git.ipfire.org Git - people/ms/bricklayer.git/commitdiff
Show message window when creating the partition layout
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 8 May 2021 14:14:27 +0000 (14:14 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 8 May 2021 14:14:27 +0000 (14:14 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/python/disk.py

index a808b705eec2861f882e7a39585ccf4f59665fd4..ee821584f79644e8debb240102d303164389585e 100644 (file)
@@ -427,8 +427,12 @@ class CreatePartitionLayout(step.Step):
        def run(self, tui):
                log.debug("Creating partitions")
 
-               for disk in self.bricklayer.disks.selected:
-                       disk.commit()
+               with tui.progress(
+                       _("Creating Partition Layout"),
+                       _("Creating partition layout..."),
+               ):
+                       for disk in self.bricklayer.disks.selected:
+                               disk.commit()
 
 
 class CreateFilesystems(step.Step):