mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 20:27:36 +02:00
Fix identation + display disabled program sources
This commit is contained in:
@@ -15,7 +15,22 @@ namespace Wox.Plugin.Program.Views.Commands
|
|||||||
|
|
||||||
programSources.ForEach(x => list
|
programSources.ForEach(x => list
|
||||||
.Add(
|
.Add(
|
||||||
new ProgramSource {
|
new ProgramSource
|
||||||
|
{
|
||||||
|
Enabled = x.Enabled,
|
||||||
|
Location = x.Location,
|
||||||
|
Name = x.Name,
|
||||||
|
UniqueIdentifier = x.UniqueIdentifier
|
||||||
|
}
|
||||||
|
));
|
||||||
|
|
||||||
|
// Even though these are disabled, we still want to display them so users can enable later on
|
||||||
|
Main._settings
|
||||||
|
.DisabledProgramSources
|
||||||
|
.ForEach(x => list
|
||||||
|
.Add(
|
||||||
|
new ProgramSource
|
||||||
|
{
|
||||||
Enabled = x.Enabled,
|
Enabled = x.Enabled,
|
||||||
Location = x.Location,
|
Location = x.Location,
|
||||||
Name = x.Name,
|
Name = x.Name,
|
||||||
@@ -33,7 +48,8 @@ namespace Wox.Plugin.Program.Views.Commands
|
|||||||
.ToList()
|
.ToList()
|
||||||
.ForEach(t1 => ProgramSetting.ProgramSettingDisplayList
|
.ForEach(t1 => ProgramSetting.ProgramSettingDisplayList
|
||||||
.Add(
|
.Add(
|
||||||
new ProgramSource {
|
new ProgramSource
|
||||||
|
{
|
||||||
Name = t1.Name,
|
Name = t1.Name,
|
||||||
Location = t1.ParentDirectory,
|
Location = t1.ParentDirectory,
|
||||||
UniqueIdentifier = t1.UniqueIdentifier,
|
UniqueIdentifier = t1.UniqueIdentifier,
|
||||||
@@ -46,13 +62,14 @@ namespace Wox.Plugin.Program.Views.Commands
|
|||||||
.ToList()
|
.ToList()
|
||||||
.ForEach(t1 => ProgramSetting.ProgramSettingDisplayList
|
.ForEach(t1 => ProgramSetting.ProgramSettingDisplayList
|
||||||
.Add(
|
.Add(
|
||||||
new ProgramSource {
|
new ProgramSource
|
||||||
|
{
|
||||||
Name = t1.DisplayName,
|
Name = t1.DisplayName,
|
||||||
Location = t1.Package.Location,
|
Location = t1.Package.Location,
|
||||||
UniqueIdentifier = t1.UniqueIdentifier,
|
UniqueIdentifier = t1.UniqueIdentifier,
|
||||||
Enabled = t1.Enabled
|
Enabled = t1.Enabled
|
||||||
})
|
}
|
||||||
);
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
internal static void SetProgramSourcesStatus(this List<ProgramSource> list, List<ProgramSource> selectedProgramSourcesToDisable, bool status)
|
internal static void SetProgramSourcesStatus(this List<ProgramSource> list, List<ProgramSource> selectedProgramSourcesToDisable, bool status)
|
||||||
|
|||||||
Reference in New Issue
Block a user