From d47035a5b0b4cad2f9d3dd648357f119d753609c Mon Sep 17 00:00:00 2001 From: mirkobrombin Date: Sat, 7 May 2022 10:24:15 +0200 Subject: [PATCH] fix #1420 --- src/window.py | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/src/window.py b/src/window.py index e83dd9da63d..c3b73fcf102 100644 --- a/src/window.py +++ b/src/window.py @@ -153,17 +153,6 @@ def __init__(self, arg_exe, arg_bottle, arg_passed, **kwargs): self.__on_start() - if self.arg_exe: - ''' - If Bottles was started with an executable as argument, without - a bottle, the user will be prompted to select a bottle from the - bottles list. - ''' - self.show_list_view() - - self.arg_exe = False - logging.info("Bottles Started!", ) - def on_page_changed(self, stack, param): """ When the user changes the page, update the window title @@ -276,6 +265,15 @@ def set_manager(result, error=None): dialog.run() dialog.destroy() + if self.arg_exe: + ''' + If Bottles was started with an executable as argument, without + a bottle, the user will be prompted to select a bottle from the + bottles list. + ''' + self.show_list_view() + self.arg_exe = False + def get_manager(window): mng = Manager(window) return mng