File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Plugins/Flow.Launcher.Plugin.Explorer/Search/Everything Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -115,8 +115,16 @@ public static async IAsyncEnumerable<SearchResult> SearchAsync(EverythingSearchO
115
115
116
116
EverythingApiDllImport . Everything_SetSort ( option . SortOption ) ;
117
117
EverythingApiDllImport . Everything_SetMatchPath ( option . IsFullPathSearch ) ;
118
+
119
+ if ( option . SortOption == SortOption . RUN_COUNT_DESCENDING )
120
+ {
121
+ EverythingApiDllImport . Everything_SetRequestFlags ( EVERYTHING_REQUEST_FULL_PATH_AND_FILE_NAME | EVERYTHING_REQUEST_RUN_COUNT ) ;
122
+ }
123
+ else
124
+ {
125
+ EverythingApiDllImport . Everything_SetRequestFlags ( EVERYTHING_REQUEST_FULL_PATH_AND_FILE_NAME ) ;
126
+ }
118
127
119
- EverythingApiDllImport . Everything_SetRequestFlags ( EVERYTHING_REQUEST_FULL_PATH_AND_FILE_NAME | EVERYTHING_REQUEST_RUN_COUNT ) ; // todo need flag for this?
120
128
121
129
122
130
if ( token . IsCancellationRequested ) yield break ;
@@ -143,7 +151,6 @@ public static async IAsyncEnumerable<SearchResult> SearchAsync(EverythingSearchO
143
151
Type = EverythingApiDllImport . Everything_IsFolderResult ( idx ) ? ResultType . Folder :
144
152
EverythingApiDllImport . Everything_IsFileResult ( idx ) ? ResultType . File :
145
153
ResultType . Volume ,
146
- // todo need flag for this?
147
154
Score = ( int ) EverythingApiDllImport . Everything_GetResultRunCount ( ( uint ) idx )
148
155
} ;
149
156
You can’t perform that action at this time.
0 commit comments