|
|
@ -119,12 +119,14 @@ class VanillaProgress(Gtk.Box):
|
|
|
|
status = not bool(status)
|
|
|
|
status = not bool(status)
|
|
|
|
|
|
|
|
|
|
|
|
if self.__success_fn is not None and status:
|
|
|
|
if self.__success_fn is not None and status:
|
|
|
|
self.__success_fn()
|
|
|
|
self.__success_fn(*self.__success_fn_args)
|
|
|
|
|
|
|
|
|
|
|
|
self.__window.set_installation_result(status, self.__terminal)
|
|
|
|
self.__window.set_installation_result(status, self.__terminal)
|
|
|
|
|
|
|
|
|
|
|
|
def start(self, setup_commands, success_fn):
|
|
|
|
def start(self, setup_commands, success_fn, *fn_args):
|
|
|
|
self.__success_fn = success_fn
|
|
|
|
self.__success_fn = success_fn
|
|
|
|
|
|
|
|
self.__success_fn_args = fn_args
|
|
|
|
|
|
|
|
|
|
|
|
self.__terminal.spawn_async(
|
|
|
|
self.__terminal.spawn_async(
|
|
|
|
Vte.PtyFlags.DEFAULT,
|
|
|
|
Vte.PtyFlags.DEFAULT,
|
|
|
|
".",
|
|
|
|
".",
|
|
|
@ -136,4 +138,4 @@ class VanillaProgress(Gtk.Box):
|
|
|
|
-1,
|
|
|
|
-1,
|
|
|
|
None,
|
|
|
|
None,
|
|
|
|
None
|
|
|
|
None
|
|
|
|
)
|
|
|
|
)
|
|
|
|