diff options
| author | xXJSONDeruloXx <danielhimebauch@gmail.com> | 2026-07-30 21:09:27 -0400 |
|---|---|---|
| committer | xXJSONDeruloXx <danielhimebauch@gmail.com> | 2026-07-30 21:09:27 -0400 |
| commit | eb51ec80231cf13accf8af156fa7a4283e2a2f88 (patch) | |
| tree | 95fd368b42efa29f28b924c8884a8f0d4c80d123 /py_modules/lsfg_vk/config_schema.py | |
| parent | 4390d600ffd35184c4c30bc64480f58e468627de (diff) | |
| download | decky-lsfg-vk-feat/lsfg-v2-release.tar.gz decky-lsfg-vk-feat/lsfg-v2-release.zip | |
fix: harden lsfg-v2 migration and flatpak supportfeat/lsfg-v2-release
Diffstat (limited to 'py_modules/lsfg_vk/config_schema.py')
| -rw-r--r-- | py_modules/lsfg_vk/config_schema.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/py_modules/lsfg_vk/config_schema.py b/py_modules/lsfg_vk/config_schema.py index 258b9dd..f8a9fe6 100644 --- a/py_modules/lsfg_vk/config_schema.py +++ b/py_modules/lsfg_vk/config_schema.py @@ -259,9 +259,13 @@ class ConfigurationManager: if normalized in profile_data["profiles"]: raise ValueError(f"Profile '{normalized}' already exists") source = source_profile if source_profile in profile_data["profiles"] else profile_data["current_profile"] + new_profile = dict(profile_data["profiles"][source]) + # A cloned profile may inherit Active In values that collide with its source. + # Force the newly selected profile until the user explicitly enables native matching. + new_profile["use_native_matching"] = False return ProfileData( current_profile=profile_data["current_profile"], - profiles={**profile_data["profiles"], normalized: dict(profile_data["profiles"][source])}, + profiles={**profile_data["profiles"], normalized: new_profile}, global_config=dict(profile_data["global_config"]), ) |
