mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Reindex when disable program from results
This commit is contained in:
parent
bcd2b8d658
commit
fac76af685
1 changed files with 8 additions and 2 deletions
|
|
@ -196,12 +196,17 @@ namespace Flow.Launcher.Plugin.Program
|
|||
return;
|
||||
|
||||
if (_uwps.Any(x => x.UniqueIdentifier == programToDelete.UniqueIdentifier))
|
||||
{
|
||||
_uwps.FirstOrDefault(x => x.UniqueIdentifier == programToDelete.UniqueIdentifier)
|
||||
.Enabled = false;
|
||||
|
||||
if (_win32s.Any(x => x.UniqueIdentifier == programToDelete.UniqueIdentifier))
|
||||
Task.Run(IndexUwpPrograms);
|
||||
}
|
||||
else if (_win32s.Any(x => x.UniqueIdentifier == programToDelete.UniqueIdentifier))
|
||||
{
|
||||
_win32s.FirstOrDefault(x => x.UniqueIdentifier == programToDelete.UniqueIdentifier)
|
||||
.Enabled = false;
|
||||
Task.Run(IndexWin32Programs);
|
||||
}
|
||||
|
||||
_settings.DisabledProgramSources
|
||||
.Add(
|
||||
|
|
@ -213,6 +218,7 @@ namespace Flow.Launcher.Plugin.Program
|
|||
Enabled = false
|
||||
}
|
||||
);
|
||||
_settings.LastIndexTime = DateTime.Today;
|
||||
}
|
||||
|
||||
public static void StartProcess(Func<ProcessStartInfo, Process> runProcess, ProcessStartInfo info)
|
||||
|
|
|
|||
Loading…
Reference in a new issue