@@ -42,14 +42,14 @@ public static Result CreateResult(Query query, SearchResult result)
42
42
return result . Type switch
43
43
{
44
44
ResultType . Folder or ResultType . Volume => CreateFolderResult ( Path . GetFileName ( result . FullPath ) ,
45
- result . FullPath , result . FullPath , query , 0 , result . ShowIndexState , result . WindowsIndexed ) ,
45
+ result . FullPath , result . FullPath , query , 0 , result . WindowsIndexed ) ,
46
46
ResultType . File => CreateFileResult (
47
- result . FullPath , query , 0 , result . ShowIndexState , result . WindowsIndexed ) ,
47
+ result . FullPath , query , 0 , result . WindowsIndexed ) ,
48
48
_ => throw new ArgumentOutOfRangeException ( )
49
49
} ;
50
50
}
51
51
52
- internal static Result CreateFolderResult ( string title , string subtitle , string path , Query query , int score = 0 , bool showIndexState = false , bool windowsIndexed = false )
52
+ internal static Result CreateFolderResult ( string title , string subtitle , string path , Query query , int score = 0 , bool windowsIndexed = false )
53
53
{
54
54
return new Result
55
55
{
@@ -85,7 +85,6 @@ internal static Result CreateFolderResult(string title, string subtitle, string
85
85
{
86
86
Type = ResultType . Folder ,
87
87
FullPath = path ,
88
- ShowIndexState = showIndexState ,
89
88
WindowsIndexed = windowsIndexed
90
89
}
91
90
} ;
@@ -126,7 +125,6 @@ internal static Result CreateDriveSpaceDisplayResult(string path, bool windowsIn
126
125
{
127
126
Type = ResultType . Volume ,
128
127
FullPath = path ,
129
- ShowIndexState = true ,
130
128
WindowsIndexed = windowsIndexed
131
129
}
132
130
} ;
@@ -200,13 +198,12 @@ internal static Result CreateOpenCurrentFolderResult(string path, bool windowsIn
200
198
{
201
199
Type = ResultType . Folder ,
202
200
FullPath = path ,
203
- ShowIndexState = true ,
204
201
WindowsIndexed = windowsIndexed
205
202
}
206
203
} ;
207
204
}
208
205
209
- internal static Result CreateFileResult ( string filePath , Query query , int score = 0 , bool showIndexState = false , bool windowsIndexed = false )
206
+ internal static Result CreateFileResult ( string filePath , Query query , int score = 0 , bool windowsIndexed = false )
210
207
{
211
208
var result = new Result
212
209
{
@@ -261,7 +258,6 @@ internal static Result CreateFileResult(string filePath, Query query, int score
261
258
{
262
259
Type = ResultType . File ,
263
260
FullPath = filePath ,
264
- ShowIndexState = showIndexState ,
265
261
WindowsIndexed = windowsIndexed
266
262
}
267
263
} ;
0 commit comments