diff --git a/vanilla_first_setup/gtk/done.ui b/vanilla_first_setup/gtk/done.ui
index cd51bd4c..9ead9b88 100644
--- a/vanilla_first_setup/gtk/done.ui
+++ b/vanilla_first_setup/gtk/done.ui
@@ -52,23 +52,24 @@
-
-
- Get Started
+
+ View Logs
center
- false
+ true
+ 20
diff --git a/vanilla_first_setup/gtk/post-script.ui b/vanilla_first_setup/gtk/post-script.ui
index be0da0fd..992fb266 100644
--- a/vanilla_first_setup/gtk/post-script.ui
+++ b/vanilla_first_setup/gtk/post-script.ui
@@ -4,31 +4,52 @@
-
- fill
- fill
- org.vanillaos.FirstSetup-flower
- Finalizing
- Your device will be ready soon
+
+ center
+
+
+ false
+ True
+ 12
+ 12
+ go-next-symbolic
+ end
+ center
+ Next
+
+
+
-
- 40
- 40
- 1
- 18
- 250
- vertical
+
+ fill
+ fill
+ org.vanillaos.FirstSetup-flower
+ Finalizing
+ Your device will be ready soon
-
- 12
- 12
- 12
+
+ 50
+ 50
+ 1
+ 18
+ 250
vertical
+
+
+ 12
+ 12
+ 12
+ vertical
+
+
+
-
diff --git a/vanilla_first_setup/views/done.py b/vanilla_first_setup/views/done.py
index 2db90d9a..ac1053e4 100644
--- a/vanilla_first_setup/views/done.py
+++ b/vanilla_first_setup/views/done.py
@@ -28,7 +28,7 @@ class VanillaDone(Adw.Bin):
status_page = Gtk.Template.Child()
btn_reboot = Gtk.Template.Child()
- btn_retry = Gtk.Template.Child()
+ btn_logs = Gtk.Template.Child()
btn_close = Gtk.Template.Child()
log_box = Gtk.Template.Child()
log_output = Gtk.Template.Child()
@@ -61,9 +61,13 @@ def __init__(
self.btn_reboot.set_visible(False)
self.btn_close.set_visible(True)
+
+ # hide when progress is previous step
+ if self.__init_mode != 1:
+ self.btn_logs.set_visible(False)
self.btn_close.connect("clicked", self.__on_close_clicked)
- self.btn_retry.connect("clicked", self.__on_retry_clicked)
+ self.btn_logs.connect("clicked", self.__on_logs_clicked)
self.btn_reboot.connect("clicked", self.__on_reboot_clicked)
def set_reboot(self):
@@ -113,5 +117,5 @@ def __on_close_clicked(self, *args):
self.__window.close()
- def __on_retry_clicked(self, *args):
+ def __on_logs_clicked(self, *args):
self.__window.back()
diff --git a/vanilla_first_setup/views/post_script.py b/vanilla_first_setup/views/post_script.py
index 8b087865..8ed065ff 100644
--- a/vanilla_first_setup/views/post_script.py
+++ b/vanilla_first_setup/views/post_script.py
@@ -22,6 +22,7 @@ class VanillaPostScript(Adw.Bin):
__gtype_name__ = "VanillaPostScript"
console_output = Gtk.Template.Child()
+ btn_next = Gtk.Template.Child()
def __init__(self, window, post_script: str, **kwargs):
super().__init__(**kwargs)
@@ -35,6 +36,8 @@ def __init__(self, window, post_script: str, **kwargs):
self.__font.set_stretch(Pango.Stretch.NORMAL)
self.__style_manager = self.__window.style_manager
+ self.btn_next.connect("clicked", self.__on_next_clicked)
+
self.__build_ui()
self.__style_manager.connect("notify::dark", self.__build_ui)
@@ -104,4 +107,8 @@ def __build_ui(self, *args):
def on_vte_child_exited(self, terminal, status, *args):
status = not bool(status)
- self.__window.next(result=status)
+ self.btn_next.set_visible(True)
+ self.__window.set_installation_result(status, self.__terminal)
+
+ def __on_next_clicked(self, *args):
+ self.__window.next()