We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e54889 commit 175f3faCopy full SHA for 175f3fa
src/Main.cs
@@ -36,7 +36,16 @@ public string GetTranslatedPluginDescription()
36
IDialogJumpExplorerWindow? filesWindow = null;
37
38
// Is it from Files?
39
- string processName = Win32Helper.GetProcessPathFromHwnd(new(hwnd));
+ string processName;
40
+ try
41
+ {
42
+ processName = Win32Helper.GetProcessNameFromHwnd(new(hwnd));
43
+ }
44
+ catch (Exception e)
45
46
+ Context.API.LogWarn(ClassName, $"Failed to get process name: {e}");
47
+ return null;
48
49
if (processName.Equals("files.exe", StringComparison.OrdinalIgnoreCase))
50
{
51
// Is it Files's file window?
0 commit comments