Skip to content

Commit

Permalink
return success and exit code
Browse files Browse the repository at this point in the history
  • Loading branch information
jardon committed Dec 9, 2024
1 parent d59febf commit 219f186
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vanilla_sideload/views/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 219f186

Please sign in to comment.