File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
src/Files.App/Utils/Shell Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -265,6 +265,11 @@ void LoadSubMenu()
265
265
{
266
266
cMenu2 ? . HandleMenuMsg ( ( uint ) User32 . WindowMessage . WM_INITMENUPOPUP , ( IntPtr ) hSubMenu , new IntPtr ( index ) ) ;
267
267
}
268
+ catch ( Exception ex ) when ( ex is InvalidCastException or ArgumentException )
269
+ {
270
+ // TODO: Investigate why this exception happen
271
+ Debug . WriteLine ( ex ) ;
272
+ }
268
273
catch ( Exception ex ) when ( ex is COMException or NotImplementedException )
269
274
{
270
275
// Only for dynamic/owner drawn? (open with, etc)
@@ -295,7 +300,7 @@ public Task<bool> LoadSubMenu(List<Win32ContextMenuItem> subItems)
295
300
loadSubMenuAction ! ( ) ;
296
301
return true ;
297
302
}
298
- catch ( COMException )
303
+ catch
299
304
{
300
305
return false ;
301
306
}
You can’t perform that action at this time.
0 commit comments