fix off-by-one npast during some instances of fast forwarding

This commit is contained in:
Concedo 2025-05-22 19:51:21 +08:00
parent f10574e598
commit f125e724eb
3 changed files with 11 additions and 3 deletions

View file

@ -4367,6 +4367,9 @@ def show_gui():
def on_picked_model_file(filepath):
if filepath and (filepath.lower().endswith('.kcpps') or filepath.lower().endswith('.kcppt')):
#load it as a config file instead
if filepath.lower().endswith('.kcpps'):
global runmode_untouched
runmode_untouched = False
with open(filepath, 'r', encoding='utf-8', errors='ignore') as f:
dict = json.load(f)
import_vars(dict)