Block navigation on all remote modes

This commit is contained in:
Henk 2022-06-15 12:32:19 +02:00
parent f39e24d87f
commit 24d34647e0
1 changed files with 1 additions and 1 deletions

View File

@ -366,7 +366,7 @@ def sendModelSelection(menu="mainmenu", folder="./models"):
#If we send one of the manual load options, send back the list of model directories, otherwise send the menu #If we send one of the manual load options, send back the list of model directories, otherwise send the menu
if menu in ('NeoCustom', 'GPT2Custom'): if menu in ('NeoCustom', 'GPT2Custom'):
(paths, breadcrumbs) = get_folder_path_info(folder) (paths, breadcrumbs) = get_folder_path_info(folder)
if args.remote: if vars.host:
breadcrumbs = [] breadcrumbs = []
menu_list = [[folder, menu, "", False] for folder in paths] menu_list = [[folder, menu, "", False] for folder in paths]
menu_list.append(["Return to Main Menu", "mainmenu", "", True]) menu_list.append(["Return to Main Menu", "mainmenu", "", True])