Remove logic that modifies settings

This commit is contained in:
Vic 2022-12-20 19:48:10 +08:00
parent d3bae93a47
commit b92181f6c6

View file

@ -202,11 +202,7 @@ namespace Flow.Launcher.Plugin.Program.Programs
public static Application[] All(Settings settings)
{
var support = SupportUWP();
if (!support && settings.EnableUWP)
{
settings.EnableUWP = false;
}
if (settings.EnableUWP)
if (support && settings.EnableUWP)
{
var applications = CurrentUserPackages().AsParallel().SelectMany(p =>
{