Skip to content

Commit 07b73db

Browse files
committed
Add preview info for history results
1 parent e9f317f commit 07b73db

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Flow.Launcher.Infrastructure/Constant.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public static class Constant
3232
public static readonly string MissingImgIcon = Path.Combine(ImagesDirectory, "app_missing_img.png");
3333
public static readonly string LoadingImgIcon = Path.Combine(ImagesDirectory, "loading.png");
3434
public static readonly string ImageIcon = Path.Combine(ImagesDirectory, "image.png");
35+
public static readonly string HistoryIcon = Path.Combine(ImagesDirectory, "history.png");
3536

3637
public static string PythonPath;
3738
public static string NodePath;

Flow.Launcher/ViewModel/MainViewModel.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1075,6 +1075,11 @@ private void QueryHistory()
10751075
Title = string.Format(title, h.Query),
10761076
SubTitle = string.Format(time, h.ExecutedDateTime),
10771077
IcoPath = "Images\\history.png",
1078+
Preview = new Result.PreviewInfo
1079+
{
1080+
PreviewImagePath = Constant.HistoryIcon,
1081+
Description = string.Format(time, h.ExecutedDateTime)
1082+
},
10781083
OriginQuery = new Query { RawQuery = h.Query },
10791084
Action = _ =>
10801085
{

0 commit comments

Comments
 (0)