From 1e4ff43bfc62efd86067a4ed286510c9d4536f5f Mon Sep 17 00:00:00 2001 From: VictoriousRaptor <10308169+VictoriousRaptor@users.noreply.github.com> Date: Sun, 20 Jul 2025 23:33:38 +0800 Subject: [PATCH] Use length and count instead of Any() --- .../Views/ExplorerSettings.xaml.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Views/ExplorerSettings.xaml.cs b/Plugins/Flow.Launcher.Plugin.Explorer/Views/ExplorerSettings.xaml.cs index 4b8fe26db..de33b80d6 100644 --- a/Plugins/Flow.Launcher.Plugin.Explorer/Views/ExplorerSettings.xaml.cs +++ b/Plugins/Flow.Launcher.Plugin.Explorer/Views/ExplorerSettings.xaml.cs @@ -48,7 +48,7 @@ namespace Flow.Launcher.Plugin.Explorer.Views { var files = (string[])e.Data.GetData(DataFormats.FileDrop); - if (files == null || !files.Any()) + if (files == null || files.Length == 0) { return; } @@ -101,7 +101,7 @@ namespace Flow.Launcher.Plugin.Explorer.Views if (sender is Expander expandedExpander) { // Ensure _expanders is not null and contains items - if (_expanders == null || !_expanders.Any()) return; + if (_expanders == null || _expanders.Count == 0) return; foreach (var expander in _expanders) {