]> git.ipfire.org Git - people/ms/bricklayer.git/commitdiff
Show a congratulations message when the installation is complete
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 5 May 2021 22:02:40 +0000 (22:02 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 5 May 2021 22:02:40 +0000 (22:02 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/python/__init__.py
src/python/step.py

index 69373d49fc9ecedf9f96c80177dc8104f982f069..93dc26ff8ab1a07fdb8fedee3747f4b624268e02 100644 (file)
@@ -72,6 +72,9 @@ class Bricklayer(object):
                lang.SelectLanguage,
                step.Welcome,
                disk.SelectDisk,
+
+               # Done!
+               step.Congratulations,
        )
 
        def __call__(self):
index db9340c40f543e00de85838b153cb47f89e601a0..1e6c930b4c2a572bdc0a5c81e610717450bf4b9a 100644 (file)
@@ -83,6 +83,24 @@ class Welcome(InteractiveStep):
                )
 
 
+class Congratulations(InteractiveStep):
+       """
+               Shows a message that the installation is complete
+       """
+       def run(self, tui):
+               tui.message(
+                       _("Congratulations"),
+                       _(
+                               "The installation has been completed successfully."
+                               "\n\n"
+                               "You can now safely remove any media used for the installation."
+                       ),
+                       buttons=[_("Finish")],
+
+                       # Make the window a litte bit bigger
+                       width=50,
+               )
+
 class UnattendedWarning(Step):
        @property
        def enabled(self):