Add more debugging info to DEBUG profile

This commit is contained in:
TheBestPessimist 2023-03-05 12:27:03 +02:00 committed by TheBestPessimist
parent 05ba89db3d
commit 7d6d0258d0

View file

@ -70,7 +70,7 @@ namespace Flow.Launcher.Plugin.Explorer.Search
{
return new Result
{
Title = title,
Title = title + addScoreInDebug(score),
IcoPath = path,
SubTitle = subtitle,
AutoCompleteText = GetAutoCompleteText(title, query, path, ResultType.Folder),
@ -207,7 +207,7 @@ namespace Flow.Launcher.Plugin.Explorer.Search
? new Result.PreviewInfo { IsMedia = true, PreviewImagePath = filePath, }
: Result.PreviewInfo.Default;
var title = Path.GetFileName(filePath);
var title = Path.GetFileName(filePath) + addScoreInDebug(score);
var result = new Result
{
@ -294,6 +294,15 @@ namespace Flow.Launcher.Plugin.Explorer.Search
}
}
private static string addScoreInDebug(int score)
{
#if DEBUG
return " ➡️ " + score;
#else
return "";
#endif
}
public static readonly string[] MediaExtensions = { ".jpg", ".png", ".avi", ".mkv", ".bmp", ".gif", ".wmv", ".mp3", ".flac", ".mp4" };
}