Block navigation on all remote modes
This commit is contained in:
parent
f39e24d87f
commit
24d34647e0
|
@ -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])
|
||||||
|
|
Loading…
Reference in New Issue