mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
formatting
This commit is contained in:
parent
2e8bb357fc
commit
20854ba5d7
1 changed files with 4 additions and 4 deletions
|
|
@ -1,4 +1,4 @@
|
|||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text.Json.Serialization;
|
||||
|
|
@ -48,6 +48,9 @@ namespace Flow.Launcher.Storage
|
|||
public void Add(Result result)
|
||||
{
|
||||
if (string.IsNullOrEmpty(result.OriginQuery.TrimmedQuery)) return;
|
||||
// History results triggered from homepage do not contain PluginID,
|
||||
// these are intentionally not saved otherwise cause duplicates due to subtitle
|
||||
// containing datetime string.
|
||||
if (string.IsNullOrEmpty(result.PluginID)) return;
|
||||
|
||||
// Maintain the max history limit
|
||||
|
|
@ -59,7 +62,6 @@ namespace Flow.Launcher.Storage
|
|||
if (LastOpenedHistoryItems.Count > 0 &&
|
||||
TryGetLastOpenedHistoryResult(result, out var existingHistoryItem))
|
||||
{
|
||||
//existingHistoryItem.IcoPath = result.IcoPath;
|
||||
existingHistoryItem.ExecutedDateTime = DateTime.Now;
|
||||
}
|
||||
else
|
||||
|
|
@ -91,8 +93,6 @@ namespace Flow.Launcher.Storage
|
|||
if (pluginPair == null)
|
||||
continue;
|
||||
|
||||
//item.IcoPath = Path.Combine(pluginPair.Metadata.PluginDirectory, item.IcoPath);
|
||||
|
||||
item.PluginDirectory = pluginPair.Metadata.PluginDirectory;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue