mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Make log message context-neutral
This commit is contained in:
parent
dca90916fe
commit
48878d2d8c
1 changed files with 4 additions and 4 deletions
|
|
@ -1086,16 +1086,16 @@ namespace Flow.Launcher.Core.Plugin
|
||||||
if (!Version.TryParse(minimumAppVersion, out var minimumVersion))
|
if (!Version.TryParse(minimumAppVersion, out var minimumVersion))
|
||||||
{
|
{
|
||||||
PublicApi.Instance.LogError(ClassName,
|
PublicApi.Instance.LogError(ClassName,
|
||||||
$"Failed to parse the minimum app version {minimumAppVersion} for plugin {pluginName}. "
|
$"Failed to parse the minimum app version {minimumAppVersion} for plugin {pluginName}.");
|
||||||
+ "Plugin excluded from manifest");
|
|
||||||
return false; // If the minimum app version specified in plugin.json is invalid, we assume it is not satisfied
|
return false; // If the minimum app version specified in plugin.json is invalid, we assume it is not satisfied
|
||||||
}
|
}
|
||||||
|
|
||||||
if (appVersion >= minimumVersion)
|
if (appVersion >= minimumVersion)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
PublicApi.Instance.LogInfo(ClassName, $"Plugin {pluginName} requires minimum Flow Launcher version {minimumAppVersion}, "
|
PublicApi.Instance.LogInfo(ClassName,
|
||||||
+ $"but current version is {Constant.Version}. Plugin excluded from manifest.");
|
$"Plugin {pluginName} requires minimum Flow Launcher version {minimumAppVersion}, "
|
||||||
|
+ $"but current version is {Constant.Version}.");
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue