wip on rewind function

This commit is contained in:
Concedo 2024-10-06 16:21:03 +08:00
parent 7dac9982f9
commit 3e8bb10e2d
2 changed files with 60 additions and 2 deletions

View file

@ -3285,10 +3285,10 @@ def show_gui():
def load_config_gui(): #this is used to populate the GUI with a config file, whereas load_config_cli simply overwrites cli args
file_type = [("KoboldCpp Settings", "*.kcpps *.kcppt")]
global runmode_untouched
runmode_untouched = False
filename = askopenfilename(filetypes=file_type, defaultextension=file_type, initialdir=None)
if not filename or filename=="":
return
runmode_untouched = False
with open(filename, 'r') as f:
dict = json.load(f)
import_vars(dict)