mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
clear backwards compat code
This commit is contained in:
parent
823d4e1bf6
commit
ea4286b7d3
3 changed files with 0 additions and 42 deletions
|
|
@ -41,18 +41,6 @@ namespace Flow.Launcher.Core.ExternalPlugins.Environments
|
||||||
if (!PluginMetadataList.Any(o => o.Language.Equals(Language, StringComparison.OrdinalIgnoreCase)))
|
if (!PluginMetadataList.Any(o => o.Language.Equals(Language, StringComparison.OrdinalIgnoreCase)))
|
||||||
return new List<PluginPair>();
|
return new List<PluginPair>();
|
||||||
|
|
||||||
// TODO: Remove. This is backwards compatibility for 1.10.0 release- changed PythonEmbeded to Environments/Python
|
|
||||||
if (Language.Equals(AllowedLanguage.Python, StringComparison.OrdinalIgnoreCase))
|
|
||||||
{
|
|
||||||
FilesFolders.RemoveFolderIfExists(Path.Combine(DataLocation.DataDirectory(), "PythonEmbeddable"));
|
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(PluginSettings.PythonDirectory) && PluginSettings.PythonDirectory.StartsWith(Path.Combine(DataLocation.DataDirectory(), "PythonEmbeddable")))
|
|
||||||
{
|
|
||||||
InstallEnvironment();
|
|
||||||
PluginSettings.PythonDirectory = string.Empty;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(PluginsSettingsFilePath) && FilesFolders.FileExists(PluginsSettingsFilePath))
|
if (!string.IsNullOrEmpty(PluginsSettingsFilePath) && FilesFolders.FileExists(PluginsSettingsFilePath))
|
||||||
{
|
{
|
||||||
// Ensure latest only if user is using Flow's environment setup.
|
// Ensure latest only if user is using Flow's environment setup.
|
||||||
|
|
|
||||||
|
|
@ -1,8 +0,0 @@
|
||||||
using System;
|
|
||||||
|
|
||||||
namespace Flow.Launcher.Infrastructure.Storage
|
|
||||||
{
|
|
||||||
[Obsolete("Deprecated as of Flow Launcher v1.8.0, on 2021.06.21. " +
|
|
||||||
"This is used only for Everything plugin v1.4.9 or below backwards compatibility")]
|
|
||||||
public interface ISavable : Plugin.ISavable { }
|
|
||||||
}
|
|
||||||
|
|
@ -26,9 +26,6 @@ namespace Flow.Launcher.Infrastructure.UserSettings
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Remove. This is backwards compatibility for 1.10.0 release.
|
|
||||||
public string PythonDirectory { get; set; }
|
|
||||||
|
|
||||||
public Dictionary<string, Plugin> Plugins { get; set; } = new Dictionary<string, Plugin>();
|
public Dictionary<string, Plugin> Plugins { get; set; } = new Dictionary<string, Plugin>();
|
||||||
|
|
||||||
public void UpdatePluginSettings(List<PluginMetadata> metadatas)
|
public void UpdatePluginSettings(List<PluginMetadata> metadatas)
|
||||||
|
|
@ -38,25 +35,6 @@ namespace Flow.Launcher.Infrastructure.UserSettings
|
||||||
if (Plugins.ContainsKey(metadata.ID))
|
if (Plugins.ContainsKey(metadata.ID))
|
||||||
{
|
{
|
||||||
var settings = Plugins[metadata.ID];
|
var settings = Plugins[metadata.ID];
|
||||||
|
|
||||||
if (metadata.ID == "572be03c74c642baae319fc283e561a8" && metadata.ActionKeywords.Count > settings.ActionKeywords.Count)
|
|
||||||
{
|
|
||||||
// TODO: Remove. This is backwards compatibility for Explorer 1.8.0 release.
|
|
||||||
// Introduced two new action keywords in Explorer, so need to update plugin setting in the UserData folder.
|
|
||||||
if (settings.Version.CompareTo("1.8.0") < 0)
|
|
||||||
{
|
|
||||||
settings.ActionKeywords.Add(Query.GlobalPluginWildcardSign); // for index search
|
|
||||||
settings.ActionKeywords.Add(Query.GlobalPluginWildcardSign); // for path search
|
|
||||||
settings.ActionKeywords.Add(Query.GlobalPluginWildcardSign); // for quick access action keyword
|
|
||||||
}
|
|
||||||
|
|
||||||
// TODO: Remove. This is backwards compatibility for Explorer 1.9.0 release.
|
|
||||||
// Introduced a new action keywords in Explorer since 1.8.0, so need to update plugin setting in the UserData folder.
|
|
||||||
if (settings.Version.CompareTo("1.8.0") > 0)
|
|
||||||
{
|
|
||||||
settings.ActionKeywords.Add(Query.GlobalPluginWildcardSign); // for quick access action keyword
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (string.IsNullOrEmpty(settings.Version))
|
if (string.IsNullOrEmpty(settings.Version))
|
||||||
settings.Version = metadata.Version;
|
settings.Version = metadata.Version;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue