Skip to content

Commit cb78e10

Browse files
committed
Add threading task run for StartProcess
Context menu hides immediately after user selection
1 parent 9d031c1 commit cb78e10

File tree

1 file changed

+4
-2
lines changed
  • Plugins/Wox.Plugin.Program/Programs

1 file changed

+4
-2
lines changed

Plugins/Wox.Plugin.Program/Programs/Win32.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,10 @@ public List<Result> ContextMenus(IPublicAPI api)
121121
WorkingDirectory = ParentDirectory,
122122
Verb = "runas"
123123
};
124-
var hide = Main.StartProcess(Process.Start, info);
125-
return hide;
124+
125+
Task.Run(() => Main.StartProcess(Process.Start, info));
126+
127+
return true;
126128
},
127129
IcoPath = "Images/cmd.png"
128130
},

0 commit comments

Comments
 (0)