From eb51ec80231cf13accf8af156fa7a4283e2a2f88 Mon Sep 17 00:00:00 2001 From: xXJSONDeruloXx Date: Thu, 30 Jul 2026 21:09:27 -0400 Subject: fix: harden lsfg-v2 migration and flatpak support --- py_modules/lsfg_vk/config_schema.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'py_modules/lsfg_vk/config_schema.py') 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"]), ) -- cgit v1.2.3