Merge pull request #2625 from Flow-Launcher/fix-programs-indexing

Fix program indexing logic when cache is empty
This commit is contained in:
Kevin Zhang 2024-03-31 11:43:14 -05:00 committed by GitHub
commit 62a7d9ad04
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -84,7 +84,7 @@ namespace Flow.Launcher.Plugin.Program
Log.Info($"|Flow.Launcher.Plugin.Program.Main|Number of preload win32 programs <{_win32s.Length}>");
Log.Info($"|Flow.Launcher.Plugin.Program.Main|Number of preload uwps <{_uwps.Length}>");
bool cacheEmpty = !_win32s.Any() && !_uwps.Any();
bool cacheEmpty = !_win32s.Any() || !_uwps.Any();
if (cacheEmpty || _settings.LastIndexTime.AddHours(30) < DateTime.Now)
{