Skip to content

Commit

Permalink
prompt user for resolutions fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
NegatioN committed Apr 2, 2015
1 parent abc4f68 commit b11bba3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nyaatorrent_downloader/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@ def run():

#we have configs and want to load these.
if configs != None:
if configs.getPrompt() == True: #user wants to be prompted every time.
if configs.getPrompt() == False: #user wants to use configs.
resolution = configs.getResolution()
else: #user wants to be prompted every time.
resolution = print_factory.select_resolution()
#we have no config-file and have to manually select options
else:
resolution = print_configs.select_resolution()
Expand Down
2 changes: 2 additions & 0 deletions nyaatorrent_downloader/print_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,5 @@ def createNewConfig():
return print_configs.createNewConfig()
def selectProfile(configs):
return print_configs.selectProfile(configs)
def select_resolution():
return print_configs.select_resolution()

0 comments on commit b11bba3

Please sign in to comment.