Fix program indexing logic when cache is empty

This commit is contained in:
VictoriousRaptor 2024-03-31 20:07:18 +08:00
parent 0cb80c4442
commit df589cea49

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)
{