Skip to content

Commit 48c0f21

Browse files
committed
only msg plugin download & install succes/failure
1 parent 7868d62 commit 48c0f21

File tree

4 files changed

+0
-14
lines changed

4 files changed

+0
-14
lines changed

Plugins/Flow.Launcher.Plugin.PluginsManager/Languages/en.xaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,13 @@
44

55
<!--Dialogues-->
66
<system:String x:Key="plugin_pluginsmanager_downloading_plugin">Downloading plugin</system:String>
7-
<system:String x:Key="plugin_pluginsmanager_please_wait">Please wait...</system:String>
87
<system:String x:Key="plugin_pluginsmanager_download_success">Successfully downloaded</system:String>
98
<system:String x:Key="plugin_pluginsmanager_download_error">Error: Unable to download the plugin</system:String>
109
<system:String x:Key="plugin_pluginsmanager_uninstall_prompt">{0} by {1} {2}{3}Would you like to uninstall this plugin? After the uninstallation Flow will automatically restart.</system:String>
1110
<system:String x:Key="plugin_pluginsmanager_install_prompt">{0} by {1} {2}{3}Would you like to install this plugin? After the installation Flow will automatically restart.</system:String>
1211
<system:String x:Key="plugin_pluginsmanager_install_title">Plugin Install</system:String>
1312
<system:String x:Key="plugin_pluginsmanager_install_from_web">Download and install {0}</system:String>
1413
<system:String x:Key="plugin_pluginsmanager_uninstall_title">Plugin Uninstall</system:String>
15-
<system:String x:Key="plugin_pluginsmanager_install_in_progress">Plugin installation in progress. Please wait...</system:String>
1614
<system:String x:Key="plugin_pluginsmanager_install_success_restart">Plugin successfully installed. Restarting Flow, please wait...</system:String>
1715
<system:String x:Key="plugin_pluginsmanager_install_errormetadatafile">Unable to find the plugin.json metadata file from the extracted zip file.</system:String>
1816
<system:String x:Key="plugin_pluginsmanager_install_error_duplicate">Error: A plugin which has the same or greater version with {0} already exists.</system:String>

Plugins/Flow.Launcher.Plugin.PluginsManager/Languages/sk.xaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
<!--Dialogues-->
66
<system:String x:Key="plugin_pluginsmanager_downloading_plugin">Sťahovanie pluginu</system:String>
7-
<system:String x:Key="plugin_pluginsmanager_please_wait">Čakajte, prosím…</system:String>
87
<system:String x:Key="plugin_pluginsmanager_download_success">Úspešne stiahnuté</system:String>
98
<system:String x:Key="plugin_pluginsmanager_uninstall_prompt">{0} od {1} {2}{3}Chcete odinštalovať tento plugin? Po odinštalovaní sa Flow automaticky reštartuje.</system:String>
109
<system:String x:Key="plugin_pluginsmanager_install_prompt">{0} by {1} {2}{3}Chcete nainštalovať tento plugin? Po nainštalovaní sa Flow automaticky reštartuje.</system:String>

Plugins/Flow.Launcher.Plugin.PluginsManager/Languages/zh-cn.xaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
<!--Dialogues-->
66
<system:String x:Key="plugin_pluginsmanager_downloading_plugin">下载插件</system:String>
7-
<system:String x:Key="plugin_pluginsmanager_please_wait">请稍等...</system:String>
87
<system:String x:Key="plugin_pluginsmanager_download_success">下载完成</system:String>
98
<system:String x:Key="plugin_pluginsmanager_uninstall_prompt">{0} by {1} {2}{3} 您要卸载此插件吗? 卸载后,Flow Launcher 将自动重启。</system:String>
109
<system:String x:Key="plugin_pluginsmanager_install_prompt">{0} by {1} {2}{3} 您要安装此插件吗? 安装后,Flow Launcher 将自动重启</system:String>

Plugins/Flow.Launcher.Plugin.PluginsManager/PluginsManager.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -150,17 +150,11 @@ internal async Task InstallOrUpdate(UserPlugin plugin)
150150

151151
try
152152
{
153-
Context.API.ShowMsg(Context.API.GetTranslation("plugin_pluginsmanager_downloading_plugin"),
154-
Context.API.GetTranslation("plugin_pluginsmanager_please_wait"));
155-
156153
await Http.DownloadAsync(plugin.UrlDownload, filePath).ConfigureAwait(false);
157154

158155
Context.API.ShowMsg(Context.API.GetTranslation("plugin_pluginsmanager_downloading_plugin"),
159156
Context.API.GetTranslation("plugin_pluginsmanager_download_success"));
160157

161-
Context.API.ShowMsg(Context.API.GetTranslation("plugin_pluginsmanager_install_title"),
162-
Context.API.GetTranslation("plugin_pluginsmanager_install_in_progress"));
163-
164158
Install(plugin, filePath);
165159
}
166160
catch (Exception e)
@@ -257,10 +251,6 @@ where existingPlugin.Metadata.Version.CompareTo(pluginFromManifest.Version) <
257251

258252
Task.Run(async delegate
259253
{
260-
Context.API.ShowMsg(
261-
Context.API.GetTranslation("plugin_pluginsmanager_downloading_plugin"),
262-
Context.API.GetTranslation("plugin_pluginsmanager_please_wait"));
263-
264254
await Http.DownloadAsync(x.PluginNewUserPlugin.UrlDownload, downloadToFilePath)
265255
.ConfigureAwait(false);
266256

0 commit comments

Comments
 (0)