From 56d475df4fd9727c260302f43798420279544d30 Mon Sep 17 00:00:00 2001 From: DrSmugleaf Date: Mon, 22 Nov 2021 20:49:36 +0100 Subject: [PATCH] Fix not showing any playerless logs when no players are selected --- Content.Client/Administration/UI/Logs/AdminLogsWindow.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Client/Administration/UI/Logs/AdminLogsWindow.xaml.cs b/Content.Client/Administration/UI/Logs/AdminLogsWindow.xaml.cs index c085108d95..35cf7f1bc1 100644 --- a/Content.Client/Administration/UI/Logs/AdminLogsWindow.xaml.cs +++ b/Content.Client/Administration/UI/Logs/AdminLogsWindow.xaml.cs @@ -198,7 +198,7 @@ public partial class AdminLogsWindow : SS14Window private bool ShouldShowLog(AdminLogLabel label) { return SelectedTypes.Contains(label.Log.Type) && - SelectedPlayers.Overlaps(label.Log.Players) && + (SelectedPlayers.Count + label.Log.Players.Length == 0 || SelectedPlayers.Overlaps(label.Log.Players)) && SelectedImpacts.Contains(label.Log.Impact) && label.Log.Message.Contains(LogSearch.Text, StringComparison.OrdinalIgnoreCase); }