diff options
author | ThanosApollo <[email protected]> | 2022-10-01 08:37:56 +0300 |
---|---|---|
committer | ThanosApollo <[email protected]> | 2022-10-01 08:37:56 +0300 |
commit | aeb7f1457eb5fa0591f2f1020d83a616d9b1fcb6 (patch) | |
tree | b5b7fd4ee1bd336d82348ff0a799f1e0c8847fdb /.local/share/Anki2/addons21/anki_reworked/config.py | |
parent | a4a7c05aaa05c267ce304697daddde6637fbd8a9 (diff) |
Remove anki add ons
Diffstat (limited to '.local/share/Anki2/addons21/anki_reworked/config.py')
-rw-r--r-- | .local/share/Anki2/addons21/anki_reworked/config.py | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/.local/share/Anki2/addons21/anki_reworked/config.py b/.local/share/Anki2/addons21/anki_reworked/config.py deleted file mode 100644 index 9e508f8..0000000 --- a/.local/share/Anki2/addons21/anki_reworked/config.py +++ /dev/null @@ -1,22 +0,0 @@ -from aqt import mw - -def get_config() -> dict: - config: dict = mw.addonManager.getConfig(__name__) or dict() - ## Addon fix - config['addon_more_overview_stats'] = True if config.get('addon_more_overview_stats', "false").lower() == "true" else False - config['addon_advanced_review_bottom_bar'] = True if config.get('addon_advanced_review_bottom_bar', "false").lower() == "true" else False - ## Customization - config['font'] = config.get('font', "Segoe UI") - config['font_size'] = int(config.get('font_size', "12")) - config['theme'] = config.get('theme', 'Anki') - config['theme_reload'] = True if config.get('theme_reload', "false").lower() == "true" else False - - return config - -def write_config(config): - for key in config.keys(): - if not isinstance(config[key], str): - config[key] = str(config[key]) - mw.addonManager.writeConfig(__name__, config) - -config = get_config() |