mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Add a null/invalid ContextData guard in hotkey Action
This commit is contained in:
parent
007c0897b1
commit
d8198d0367
1 changed files with 2 additions and 2 deletions
|
|
@ -481,12 +481,12 @@ namespace Flow.Launcher.Plugin.Program
|
||||||
Visible = true,
|
Visible = true,
|
||||||
Action = (r) =>
|
Action = (r) =>
|
||||||
{
|
{
|
||||||
if (r.ContextData is UWPApp uwp)
|
if (r?.ContextData is UWPApp uwp)
|
||||||
{
|
{
|
||||||
Context.API.OpenDirectory(uwp.Location);
|
Context.API.OpenDirectory(uwp.Location);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else if (r.ContextData is Win32 win32)
|
else if (r?.ContextData is Win32 win32)
|
||||||
{
|
{
|
||||||
Context.API.OpenDirectory(win32.ParentDirectory, win32.FullPath);
|
Context.API.OpenDirectory(win32.ParentDirectory, win32.FullPath);
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue