mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Add more debugging info to DEBUG profile
This commit is contained in:
parent
05ba89db3d
commit
7d6d0258d0
1 changed files with 11 additions and 2 deletions
|
|
@ -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" };
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue