Skip to content

Commit 6f9a879

Browse files
committed
remove subtitle highlighting code
1 parent f1c46d1 commit 6f9a879

File tree

3 files changed

+4
-13
lines changed

3 files changed

+4
-13
lines changed

Flow.Launcher.Plugin/Result.cs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Collections.Generic;
33
using System.IO;
44
using System.Windows.Media;
@@ -77,9 +77,7 @@ public string IcoPath
7777
/// </summary>
7878
public IList<int> TitleHighlightData { get; set; }
7979

80-
/// <summary>
81-
/// A list of indexes for the characters to be highlighted in SubTitle
82-
/// </summary>
80+
[Obsolete("Deprecated as of Flow Launcher v1.9.1. Subtitle highlighting is no longer offered")]
8381
public IList<int> SubTitleHighlightData { get; set; }
8482

8583
/// <summary>
@@ -110,8 +108,7 @@ public override bool Equals(object obj)
110108
var equality = string.Equals(r?.Title, Title) &&
111109
string.Equals(r?.SubTitle, SubTitle) &&
112110
string.Equals(r?.IcoPath, IcoPath) &&
113-
TitleHighlightData == r.TitleHighlightData &&
114-
SubTitleHighlightData == r.SubTitleHighlightData;
111+
TitleHighlightData == r.TitleHighlightData;
115112

116113
return equality;
117114
}

Plugins/Flow.Launcher.Plugin.Sys/Main.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,9 @@ public List<Result> Query(Query query)
6666
if (score > 0)
6767
{
6868
c.Score = score;
69+
6970
if (score == titleMatch.Score)
70-
{
7171
c.TitleHighlightData = titleMatch.MatchData;
72-
}
73-
else
74-
{
75-
c.SubTitleHighlightData = subTitleMatch.MatchData;
76-
}
7772

7873
results.Add(c);
7974
}

Plugins/Flow.Launcher.Plugin.WindowsSettings/Helper/ResultHelper.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ internal static List<Result> GetResultList(
5454
if (areaMatch.IsSearchPrecisionScoreMet())
5555
{
5656
var settingResult = NewSettingResult(areaMatch.Score + midScore, entry.Type);
57-
settingResult.SubTitleHighlightData = areaMatch.MatchData.Select(x => x + 6).ToList();
5857
result = settingResult;
5958
}
6059
else

0 commit comments

Comments
 (0)