settings extensions; proper enable/disable multiselect

This commit is contained in:
Tyfon
2024-06-25 15:19:07 -07:00
parent bc166b808f
commit a6e622013e
5 changed files with 51 additions and 35 deletions

View File

@@ -16,13 +16,13 @@ namespace UIFixes
new RememberAutoselectPatch().Enable();
new RestoreAutoselectPatch().Enable();
Settings.RememberAutoselectSimilar.SettingChanged += (sender, args) =>
Settings.RememberAutoselectSimilar.Subscribe(enabled =>
{
if (!Settings.RememberAutoselectSimilar.Value)
if (!enabled)
{
PlayerPrefs.DeleteKey(PlayerPrefKey);
}
};
});
}
public class RememberAutoselectPatch : ModulePatch