File tree Expand file tree Collapse file tree 1 file changed +18
-18
lines changed
Plugins/Flow.Launcher.Plugin.Explorer Expand file tree Collapse file tree 1 file changed +18
-18
lines changed Original file line number Diff line number Diff line change @@ -167,24 +167,6 @@ public List<Result> LoadContextMenus(Result selectedResult)
167
167
Glyph = new GlyphInfo ( FontFamily : "/Resources/#Segoe Fluent Icons" , Glyph : "\uf12b " )
168
168
} ) ;
169
169
170
- if ( record . Type is ResultType . File or ResultType . Folder )
171
- {
172
- var menuItems = ShellContextMenuDisplayHelper . GetContextMenuWithIcons ( record . FullPath ) ;
173
- foreach ( var menuItem in menuItems )
174
- {
175
- contextMenus . Add ( new Result
176
- {
177
- Title = menuItem . Label ,
178
- Icon = ( ) => menuItem . Icon ,
179
- Action = _ =>
180
- {
181
- ShellContextMenuDisplayHelper . ExecuteContextMenuItem ( record . FullPath , menuItem . CommandId ) ;
182
- return true ;
183
- }
184
- } ) ;
185
- }
186
- }
187
-
188
170
189
171
if ( record . Type is ResultType . File or ResultType . Folder )
190
172
contextMenus . Add ( new Result
@@ -297,6 +279,24 @@ public List<Result> LoadContextMenus(Result selectedResult)
297
279
} ,
298
280
IcoPath = Constants . DifferentUserIconImagePath
299
281
} ) ;
282
+
283
+ if ( record . Type is ResultType . File or ResultType . Folder )
284
+ {
285
+ var menuItems = ShellContextMenuDisplayHelper . GetContextMenuWithIcons ( record . FullPath ) ;
286
+ foreach ( var menuItem in menuItems )
287
+ {
288
+ contextMenus . Add ( new Result
289
+ {
290
+ Title = menuItem . Label ,
291
+ Icon = ( ) => menuItem . Icon ,
292
+ Action = _ =>
293
+ {
294
+ ShellContextMenuDisplayHelper . ExecuteContextMenuItem ( record . FullPath , menuItem . CommandId ) ;
295
+ return true ;
296
+ }
297
+ } ) ;
298
+ }
299
+ }
300
300
}
301
301
302
302
return contextMenus ;
You can’t perform that action at this time.
0 commit comments