Skip to content

Commit

Permalink
Small Update
Browse files Browse the repository at this point in the history
  • Loading branch information
zer0fixer authored Oct 5, 2023
1 parent a1cb7d2 commit 4f588bf
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
22 changes: 21 additions & 1 deletion FontSwitcher/functions.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,24 @@ init -1 python:
persistent._temp_additional_["default"] = 0
persistent._temp_additional_["options"] = 0
persistent._temp_additional_["quick_menu"] = 0
persistent._temp_additional_["label"] = 0
persistent._temp_additional_["label"] = 0

init 1 python:
# Function to verify and reset the configuration
def check_and_reset_font_settings():
selected_key = persistent._font_settings_["id"]

if selected_key not in store.FS_font_switcher:
persistent._font_settings_ = {
"id": "justmonika",
"name": "Inactive",
"applied": False
}
persistent.fs_additional_size = {
"default": 0,
"options": 0,
"quick_menu": 0,
"label": 0
}

check_and_reset_font_settings()
2 changes: 1 addition & 1 deletion FontSwitcher/header.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ init -990 python in mas_submod_utils:
author="ZeroFixer",
name="Font Switcher",
description="Easily change the font with a simple process. Github repository: {a=https://github.com/zer0fixer/MAS-FontSwitcher}{i}{u}here{/u}{/i}{/a}",
version="1.0.1",
version="1.0.3",
settings_pane="_font_switcher_submod"
)

Expand Down

0 comments on commit 4f588bf

Please sign in to comment.