UI: update "Saved instruction templates" dropdown after loading template
This commit is contained in:
parent
da1c8d77ea
commit
1f9e25e76a
2 changed files with 7 additions and 4 deletions
|
|
@ -105,7 +105,7 @@ def get_available_instruction_templates():
|
|||
if os.path.exists(path):
|
||||
paths = (x for x in Path(path).iterdir() if x.suffix in ('.json', '.yaml', '.yml'))
|
||||
|
||||
return ['Custom'] + sorted(set((k.stem for k in paths)), key=natural_keys)
|
||||
return ['Select template to load...'] + sorted(set((k.stem for k in paths)), key=natural_keys)
|
||||
|
||||
|
||||
def get_available_extensions():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue