Skip to content

Commit 62a7d9a

Browse files
authored
Merge pull request #2625 from Flow-Launcher/fix-programs-indexing
Fix program indexing logic when cache is empty
2 parents 6649961 + df589ce commit 62a7d9a

File tree

1 file changed

+1
-1
lines changed
  • Plugins/Flow.Launcher.Plugin.Program

1 file changed

+1
-1
lines changed

Plugins/Flow.Launcher.Plugin.Program/Main.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ await Stopwatch.NormalAsync("|Flow.Launcher.Plugin.Program.Main|Preload programs
8484
Log.Info($"|Flow.Launcher.Plugin.Program.Main|Number of preload win32 programs <{_win32s.Length}>");
8585
Log.Info($"|Flow.Launcher.Plugin.Program.Main|Number of preload uwps <{_uwps.Length}>");
8686

87-
bool cacheEmpty = !_win32s.Any() && !_uwps.Any();
87+
bool cacheEmpty = !_win32s.Any() || !_uwps.Any();
8888

8989
if (cacheEmpty || _settings.LastIndexTime.AddHours(30) < DateTime.Now)
9090
{

0 commit comments

Comments
 (0)