mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Fix merge
Signed-off-by: Florian Grabmeier <flo.grabmeier@gmail.com>
This commit is contained in:
parent
f531a46225
commit
57b78b5797
2 changed files with 19 additions and 0 deletions
|
|
@ -30,6 +30,8 @@
|
|||
<system:String x:Key="plugin_pluginsmanager_update_alreadyexists">This plugin is already installed</system:String>
|
||||
<system:String x:Key="plugin_pluginsmanager_update_failed_title">Plugin Manifest Download Failed</system:String>
|
||||
<system:String x:Key="plugin_pluginsmanager_update_failed_subtitle">Please check if you can connect to github.com. This error means you may not be able to install or update plugins.</system:String>
|
||||
<system:String x:Key="plugin_pluginsmanager_update_all_title">Update All Plugins</system:String>
|
||||
<system:String x:Key="plugin_pluginsmanager_update_all_subtitle">Would you like to update all plugins?</system:String>
|
||||
<system:String x:Key="plugin_pluginsmanager_update_success_restart">Plugin {0} successfully updated. Restarting Flow, please wait...</system:String>
|
||||
<system:String x:Key="plugin_pluginsmanager_install_unknown_source_warning_title">Installing from an unknown source</system:String>
|
||||
<system:String x:Key="plugin_pluginsmanager_install_unknown_source_warning">You are installing this plugin from an unknown source and it may contain potential risks!{0}{0}Please ensure you understand where this plugin is from and that it is safe.{0}{0}Would you like to continue still?{0}{0}(You can switch off this warning via settings)</system:String>
|
||||
|
|
|
|||
|
|
@ -296,6 +296,23 @@ namespace Flow.Launcher.Plugin.PluginsManager
|
|||
}
|
||||
});
|
||||
|
||||
if (resultsForUpdate.Count() > 1)
|
||||
{
|
||||
var updateAllResult = new Result
|
||||
{
|
||||
Title = Context.API.GetTranslation("plugin_pluginsmanager_update_all_title"),
|
||||
SubTitle = Context.API.GetTranslation("plugin_pluginsmanager_update_all_subtitle"),
|
||||
IcoPath = icoPath,
|
||||
Action = e =>
|
||||
{
|
||||
// TODO: logic here
|
||||
return true;
|
||||
},
|
||||
ContextData = new UserPlugin()
|
||||
};
|
||||
results = results.Prepend(updateAllResult);
|
||||
}
|
||||
|
||||
return Search(results, search);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue