File tree Expand file tree Collapse file tree 3 files changed +4
-13
lines changed
Flow.Launcher.Plugin.WindowsSettings/Helper Expand file tree Collapse file tree 3 files changed +4
-13
lines changed Original file line number Diff line number Diff line change 1
- using System ;
1
+ using System ;
2
2
using System . Collections . Generic ;
3
3
using System . IO ;
4
4
using System . Windows . Media ;
@@ -77,9 +77,7 @@ public string IcoPath
77
77
/// </summary>
78
78
public IList < int > TitleHighlightData { get ; set ; }
79
79
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" ) ]
83
81
public IList < int > SubTitleHighlightData { get ; set ; }
84
82
85
83
/// <summary>
@@ -110,8 +108,7 @@ public override bool Equals(object obj)
110
108
var equality = string . Equals ( r ? . Title , Title ) &&
111
109
string . Equals ( r ? . SubTitle , SubTitle ) &&
112
110
string . Equals ( r ? . IcoPath , IcoPath ) &&
113
- TitleHighlightData == r . TitleHighlightData &&
114
- SubTitleHighlightData == r . SubTitleHighlightData ;
111
+ TitleHighlightData == r . TitleHighlightData ;
115
112
116
113
return equality ;
117
114
}
Original file line number Diff line number Diff line change @@ -66,14 +66,9 @@ public List<Result> Query(Query query)
66
66
if ( score > 0 )
67
67
{
68
68
c . Score = score ;
69
+
69
70
if ( score == titleMatch . Score )
70
- {
71
71
c . TitleHighlightData = titleMatch . MatchData ;
72
- }
73
- else
74
- {
75
- c . SubTitleHighlightData = subTitleMatch . MatchData ;
76
- }
77
72
78
73
results . Add ( c ) ;
79
74
}
Original file line number Diff line number Diff line change @@ -54,7 +54,6 @@ internal static List<Result> GetResultList(
54
54
if ( areaMatch . IsSearchPrecisionScoreMet ( ) )
55
55
{
56
56
var settingResult = NewSettingResult ( areaMatch . Score + midScore , entry . Type ) ;
57
- settingResult . SubTitleHighlightData = areaMatch . MatchData . Select ( x => x + 6 ) . ToList ( ) ;
58
57
result = settingResult ;
59
58
}
60
59
else
You can’t perform that action at this time.
0 commit comments