Skip to content

Commit 7d6d025

Browse files
TheBestPessimistTheBestPessimist
authored andcommitted
Add more debugging info to DEBUG profile
1 parent 05ba89d commit 7d6d025

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

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

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ internal static Result CreateFolderResult(string title, string subtitle, string
7070
{
7171
return new Result
7272
{
73-
Title = title,
73+
Title = title + addScoreInDebug(score),
7474
IcoPath = path,
7575
SubTitle = subtitle,
7676
AutoCompleteText = GetAutoCompleteText(title, query, path, ResultType.Folder),
@@ -207,7 +207,7 @@ internal static Result CreateFileResult(string filePath, Query query, int score
207207
? new Result.PreviewInfo { IsMedia = true, PreviewImagePath = filePath, }
208208
: Result.PreviewInfo.Default;
209209

210-
var title = Path.GetFileName(filePath);
210+
var title = Path.GetFileName(filePath) + addScoreInDebug(score);
211211

212212
var result = new Result
213213
{
@@ -294,6 +294,15 @@ public static bool IsMedia(string extension)
294294
}
295295
}
296296

297+
private static string addScoreInDebug(int score)
298+
{
299+
#if DEBUG
300+
return " ➡️ " + score;
301+
#else
302+
return "";
303+
#endif
304+
}
305+
297306
public static readonly string[] MediaExtensions = { ".jpg", ".png", ".avi", ".mkv", ".bmp", ".gif", ".wmv", ".mp3", ".flac", ".mp4" };
298307
}
299308

0 commit comments

Comments
 (0)