Remove unnecessary spaces

This commit is contained in:
Yusyuriv 2024-06-27 11:10:50 +06:00
parent bfd8dfe2e1
commit 1c2d9e8f52
No known key found for this signature in database
GPG key ID: A91C52E6F73148E0

View file

@ -52,7 +52,7 @@ namespace Flow.Launcher.Core.Plugin
}
/// <summary>
/// Save json and ISavable
/// Save json and ISavable
/// </summary>
public static void Save()
{
@ -225,11 +225,11 @@ namespace Flow.Launcher.Core.Plugin
{
if (query is null)
return Array.Empty<PluginPair>();
if (!NonGlobalPlugins.ContainsKey(query.ActionKeyword))
return GlobalPlugins;
var plugin = NonGlobalPlugins[query.ActionKeyword];
return new List<PluginPair>
{
@ -289,8 +289,8 @@ namespace Flow.Launcher.Core.Plugin
r.PluginID = metadata.ID;
r.OriginQuery = query;
// ActionKeywordAssigned is used for constructing MainViewModel's query text auto-complete suggestions
// Plugins may have multi-actionkeywords eg. WebSearches. In this scenario it needs to be overriden on the plugin level
// ActionKeywordAssigned is used for constructing MainViewModel's query text auto-complete suggestions
// Plugins may have multi-actionkeywords eg. WebSearches. In this scenario it needs to be overriden on the plugin level
if (metadata.ActionKeywords.Count == 1)
r.ActionKeywordAssigned = query.ActionKeyword;
}
@ -473,7 +473,7 @@ namespace Flow.Launcher.Core.Plugin
// Unzip plugin files to temp folder
var tempFolderPluginPath = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
System.IO.Compression.ZipFile.ExtractToDirectory(zipFilePath, tempFolderPluginPath);
if(!plugin.IsFromLocalInstallPath)
File.Delete(zipFilePath);