Skip to content

Commit

Permalink
fix #1420
Browse files Browse the repository at this point in the history
  • Loading branch information
mirkobrombin committed May 7, 2022
1 parent 1fc7c76 commit d47035a
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions src/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d47035a

Please sign in to comment.