Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions src/Files.App/Utils/Shell/Win32API.cs
Original file line number Diff line number Diff line change
Expand Up @@ -568,18 +568,17 @@ public static Task<bool> MountVhdDisk(string vhdPath)

public static Shell32.ITaskbarList4? CreateTaskbarObject()
{
var taskbar2 = new Shell32.ITaskbarList2();
try
{
var taskbar2 = new Shell32.ITaskbarList2();
taskbar2.HrInit();
return taskbar2 as Shell32.ITaskbarList4;
}
catch (NotImplementedException)
catch (Exception)
{
// explorer.exe is not running as a shell
return null;
}

return taskbar2 as Shell32.ITaskbarList4;
}

private static Bitmap GetAlphaBitmapFromBitmapData(BitmapData bmpData)
Expand Down