From c0abdf51336ee70d81e04287424ac0df2ed1441f Mon Sep 17 00:00:00 2001 From: SpicyDarkFox Date: Thu, 12 Sep 2024 23:09:22 +0300 Subject: [PATCH] =?UTF-8?q?=D1=84=D0=B8=D0=BA=D1=81=20=D0=BB=D0=B8=D1=87?= =?UTF-8?q?=D0=BD=D1=8B=D1=85=20=D0=B2=D0=B5=D1=89=D0=B5=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Preferences/UI/HumanoidProfileEditor.xaml.cs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Content.Client/Preferences/UI/HumanoidProfileEditor.xaml.cs b/Content.Client/Preferences/UI/HumanoidProfileEditor.xaml.cs index ae5b162bc0..223d904606 100644 --- a/Content.Client/Preferences/UI/HumanoidProfileEditor.xaml.cs +++ b/Content.Client/Preferences/UI/HumanoidProfileEditor.xaml.cs @@ -623,7 +623,6 @@ public HumanoidProfileEditor(IClientPreferencesManager preferencesManager, IProt selector.PreferenceChanged += preference => { Profile = Profile?.WithDonatePreference(donatet.ID, preference); - SetDirty(); }; if (selector.Gave) granted = true; @@ -660,6 +659,19 @@ public HumanoidProfileEditor(IClientPreferencesManager preferencesManager, IProt IsDirty = false; } +#if LPP_Sponsors // Lost Paradise Donate Preferences + private void RefreshDonatePreferences() + { + _donatePreferences = new List<_LostParadise.Donate.DonatePreferenceSelector>(); + foreach (var preferenceSelector in _donatePreferences) + { + var donateId = preferenceSelector.Donate.ID; + var preference = Profile?.DonatePreferences.Contains(donateId) ?? false; + + preferenceSelector.Preference = preference; + } + } +#endif private void LoadoutsChanged(bool enabled) {