Skip to content

Commit

Permalink
фикс личных вещей
Browse files Browse the repository at this point in the history
  • Loading branch information
SpicyDarkFox committed Sep 12, 2024
1 parent a7bdaf0 commit c0abdf5
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion Content.Client/Preferences/UI/HumanoidProfileEditor.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,6 @@ public HumanoidProfileEditor(IClientPreferencesManager preferencesManager, IProt
selector.PreferenceChanged += preference =>
{
Profile = Profile?.WithDonatePreference(donatet.ID, preference);
SetDirty();
};
if (selector.Gave)
granted = true;
Expand Down Expand Up @@ -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)
{
Expand Down

0 comments on commit c0abdf5

Please sign in to comment.