mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
fix delete logic
This commit is contained in:
parent
aa08125e43
commit
12d3ca2d50
1 changed files with 5 additions and 1 deletions
|
|
@ -68,8 +68,12 @@ namespace Wox.Plugin.Program.Views
|
|||
|
||||
private void DeleteProgramSources(List<ProgramSource> itemsToDelete)
|
||||
{
|
||||
itemsToDelete.ForEach(x => _settings.ProgramSources.Remove(x));
|
||||
itemsToDelete.ForEach(t1 => _settings.ProgramSources
|
||||
.Remove(_settings.ProgramSources
|
||||
.Where(x => x.UniqueIdentifier == t1.UniqueIdentifier)
|
||||
.FirstOrDefault()));
|
||||
itemsToDelete.ForEach(x => ProgramSettingDisplayList.Remove(x));
|
||||
|
||||
ReIndexing();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue