From 219f18678b9f4219df895d0c89652e15279d7b34 Mon Sep 17 00:00:00 2001 From: Jarred Wilson Date: Mon, 9 Dec 2024 21:07:36 +0000 Subject: [PATCH] return success and exit code --- vanilla_sideload/views/install.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vanilla_sideload/views/install.py b/vanilla_sideload/views/install.py index cf34777..ae6d2a5 100644 --- a/vanilla_sideload/views/install.py +++ b/vanilla_sideload/views/install.py @@ -28,8 +28,8 @@ class SideloaderInstall(Adw.Bin): # TODO: this and the uninstall view could be merged into one view __gtype_name__: Text = "SideloaderInstall" - __gsignals__: Dict[Text, Tuple[GObject.SignalFlags, Any, Tuple[bool]]] = { - "done": (GObject.SignalFlags.RUN_FIRST, None, (bool,)) + __gsignals__: Dict[Text, Tuple[GObject.SignalFlags, Any, Tuple[bool,int]]] = { + "done": (GObject.SignalFlags.RUN_FIRST, None, (bool,int)) } stack_main: Adw.ViewStack = Gtk.Template.Child() @@ -161,7 +161,7 @@ def on_response(dialog: Adw.MessageDialog, response: Text) -> None: def on_vte_child_exited( self, console: Vte.Terminal, status: int, *args: Any ) -> None: - self.emit("done", bool(status)) + self.emit("done", !(bool(status)), status) def __on_console_clicked(self, btn: Gtk.Button) -> None: status: bool = not self.box_console_main.get_visible()