mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Fix 1356
This commit is contained in:
parent
0a19b02792
commit
2f9b19ddfc
2 changed files with 4 additions and 3 deletions
|
|
@ -194,10 +194,10 @@ namespace Flow.Launcher.Plugin.Program
|
|||
{
|
||||
_uwps.First(x => x.UniqueIdentifier == programToDelete.UniqueIdentifier)
|
||||
.Enabled = false;
|
||||
_settings.DisabledProgramSources.Add(new DisabledProgramSource(programToDelete));
|
||||
var t1 = Task.Run(() =>
|
||||
{
|
||||
IndexWin32Programs();
|
||||
_settings.DisabledProgramSources.Add(new DisabledProgramSource(programToDelete));
|
||||
_settings.LastIndexTime = DateTime.Today;
|
||||
});
|
||||
}
|
||||
|
|
@ -205,10 +205,10 @@ namespace Flow.Launcher.Plugin.Program
|
|||
{
|
||||
_win32s.First(x => x.UniqueIdentifier == programToDelete.UniqueIdentifier)
|
||||
.Enabled = false;
|
||||
_settings.DisabledProgramSources.Add(new DisabledProgramSource(programToDelete));
|
||||
var t1 = Task.Run(() =>
|
||||
{
|
||||
IndexUwpPrograms();
|
||||
_settings.DisabledProgramSources.Add(new DisabledProgramSource(programToDelete));
|
||||
_settings.LastIndexTime = DateTime.Today;
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -325,7 +325,8 @@ namespace Flow.Launcher.Plugin.Program.Views
|
|||
|
||||
private static bool HasMoreOrEqualEnabledItems(List<ProgramSource> items)
|
||||
{
|
||||
return items.Where(x => x.Enabled).Count() >= items.Count / 2;
|
||||
var enableCount = items.Where(x => x.Enabled).Count();
|
||||
return enableCount >= items.Count - enableCount;
|
||||
}
|
||||
|
||||
private void programSourceView_SelectionChanged(object sender, SelectionChangedEventArgs e)
|
||||
|
|
|
|||
Loading…
Reference in a new issue