From: Vasilis Date: Fri, 23 Feb 2024 13:19:52 +0000 (+0100) Subject: Fix centcom and other jobs with setPreference set to false showing up anyway (#25496) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=237d89cbfe526856dd547a7e9f37b01d87e84361;p=space-station-14.git Fix centcom and other jobs with setPreference set to false showing up anyway (#25496) * God dammit pjb * Smol cleanup --- diff --git a/Content.Client/Preferences/UI/HumanoidProfileEditor.xaml.cs b/Content.Client/Preferences/UI/HumanoidProfileEditor.xaml.cs index 9270533642..e91d9f616a 100644 --- a/Content.Client/Preferences/UI/HumanoidProfileEditor.xaml.cs +++ b/Content.Client/Preferences/UI/HumanoidProfileEditor.xaml.cs @@ -586,7 +586,9 @@ namespace Content.Client.Preferences.UI _jobList.AddChild(category); } - var jobs = department.Roles.Select(jobId => _prototypeManager.Index(jobId)).ToArray(); + var jobs = department.Roles.Select(jobId => _prototypeManager.Index(jobId)) + .Where(job => job.SetPreference) + .ToArray(); Array.Sort(jobs, JobUIComparer.Instance); foreach (var job in jobs)