From ba1908d605ac7e4e312f4874b23f2ad0c9113915 Mon Sep 17 00:00:00 2001
From: Jack251970 <1160210343@qq.com>
Date: Fri, 27 Feb 2026 18:54:13 +0800
Subject: [PATCH] Update plugin min version warning message formatting
Improved the message shown when a plugin requires a newer Flow Launcher version by adding line breaks for clarity and updating the title wording. Adjusted code to pass Environment.NewLine and modified resource strings in en.xaml to support the new format.
---
Flow.Launcher.Core/Plugin/PluginManager.cs | 4 ++--
Flow.Launcher/Languages/en.xaml | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/Flow.Launcher.Core/Plugin/PluginManager.cs b/Flow.Launcher.Core/Plugin/PluginManager.cs
index 36c63ab93..eaeab01b8 100644
--- a/Flow.Launcher.Core/Plugin/PluginManager.cs
+++ b/Flow.Launcher.Core/Plugin/PluginManager.cs
@@ -922,7 +922,7 @@ namespace Flow.Launcher.Core.Plugin
{
// Ask users if they want to install the plugin that doesn't satisfy the minimum app version requirement
if (PublicApi.Instance.ShowMsgBox(
- Localize.pluginMinimumAppVersionUnsatisfiedMessage(newMetadata.Name),
+ Localize.pluginMinimumAppVersionUnsatisfiedMessage(newMetadata.Name, Environment.NewLine),
Localize.pluginMinimumAppVersionUnsatisfiedTitle(newMetadata.Name, newMetadata.MinimumAppVersion),
MessageBoxButton.YesNo) == MessageBoxResult.No)
{
@@ -1092,7 +1092,7 @@ namespace Flow.Launcher.Core.Plugin
}
if (appVersion >= minimumVersion)
- return true;
+ return true;
PublicApi.Instance.LogInfo(ClassName, $"Plugin {pluginName} requires minimum Flow Launcher version {minimumAppVersion}, "
+ $"but current version is {Constant.Version}. Plugin excluded from manifest.");
diff --git a/Flow.Launcher/Languages/en.xaml b/Flow.Launcher/Languages/en.xaml
index 26c9d35e0..9d9d66f73 100644
--- a/Flow.Launcher/Languages/en.xaml
+++ b/Flow.Launcher/Languages/en.xaml
@@ -232,8 +232,8 @@
Unable to find plugin.json from the extracted zip file, or this path {0} does not exist
A plugin with the same ID and version already exists, or the version is greater than this downloaded plugin
Error creating setting panel for plugin {0}:{1}{2}
- {0} requires Flow {1}+ version to run
- Flow does not meet the minimum version requirements for {0} to run. Do you want to continue installing it? We recommend updating Flow to the latest version to ensure that {0} works without issues.
+ {0} requires Flow {1} version to run
+ Flow does not meet the minimum version requirements for {0} to run. Do you want to continue installing it?{1}{1}We recommend updating Flow to the latest version to ensure that {0} works without issues.
Failed to install plugin because plugin.json is invalid or corrupted