Skip to content

Commit 2194e3c

Browse files
Preview image for explorer
1 parent ce2948e commit 2194e3c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Plugins/Flow.Launcher.Plugin.Explorer/Search/ResultManager.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,11 +205,14 @@ internal static Result CreateOpenCurrentFolderResult(string path, bool windowsIn
205205

206206
internal static Result CreateFileResult(string filePath, Query query, int score = 0, bool windowsIndexed = false)
207207
{
208+
bool shouldUseBigThumbnail = Result.ShouldUseBigThumbnail(Path.GetExtension(filePath));
208209
var result = new Result
209210
{
210211
Title = Path.GetFileName(filePath),
211212
SubTitle = Path.GetDirectoryName(filePath),
212213
IcoPath = filePath,
214+
PreviewImage = shouldUseBigThumbnail ? filePath : null,
215+
UseBigThumbnail = shouldUseBigThumbnail,
213216
AutoCompleteText = GetPathWithActionKeyword(filePath, ResultType.File),
214217
TitleHighlightData = StringMatcher.FuzzySearch(query.Search, Path.GetFileName(filePath)).MatchData,
215218
Score = score,

0 commit comments

Comments
 (0)