mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Fix reduce nesting
Signed-off-by: Florian Grabmeier <flo.grabmeier@gmail.com>
This commit is contained in:
parent
24a6c68fb8
commit
dcaa74dbe5
1 changed files with 46 additions and 45 deletions
|
|
@ -321,8 +321,11 @@ namespace Flow.Launcher.Plugin.PluginsManager
|
||||||
|
|
||||||
if (MessageBox.Show(message,
|
if (MessageBox.Show(message,
|
||||||
Context.API.GetTranslation("plugin_pluginsmanager_update_title"),
|
Context.API.GetTranslation("plugin_pluginsmanager_update_title"),
|
||||||
MessageBoxButton.YesNo) == MessageBoxResult.Yes)
|
MessageBoxButton.YesNo) == MessageBoxResult.No)
|
||||||
{
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
Parallel.ForEach(resultsForUpdate, plugin =>
|
Parallel.ForEach(resultsForUpdate, plugin =>
|
||||||
{
|
{
|
||||||
var downloadToFilePath = Path.Combine(Path.GetTempPath(), $"{plugin.Name}-{plugin.NewVersion}.zip");
|
var downloadToFilePath = Path.Combine(Path.GetTempPath(), $"{plugin.Name}-{plugin.NewVersion}.zip");
|
||||||
|
|
@ -366,8 +369,6 @@ namespace Flow.Launcher.Plugin.PluginsManager
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
|
||||||
return false;
|
|
||||||
},
|
},
|
||||||
ContextData = new UserPlugin()
|
ContextData = new UserPlugin()
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue