Skip to content

Commit

Permalink
fix limited file write (thanks, Sylwia)
Browse files Browse the repository at this point in the history
  • Loading branch information
AUTOMATIC1111 committed Apr 8, 2024
1 parent e164031 commit d9708c9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/ui_extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@ def apply_and_restart(disable_list, update_list, disable_all):

def save_config_state(name):
current_config_state = config_states.get_config()
if not name:
name = "Config"

name = os.path.basename(name or "Config")

current_config_state["name"] = name
timestamp = datetime.now().strftime('%Y_%m_%d-%H_%M_%S')
filename = os.path.join(config_states_dir, f"{timestamp}_{name}.json")
Expand Down

0 comments on commit d9708c9

Please sign in to comment.