fix(ui): restore ForegroundHelper.AllowAny call before wt.exe launch

OpenInTerminal lost its foreground-grant call, leaving ForegroundHelper
without a caller. Restore it ahead of the Process.Start (covers both the
wt.exe and cmd.exe fallback paths) instead of deleting the helper.
This commit is contained in:
mika kuns
2026-08-06 11:09:25 +02:00
parent 175f160956
commit 46c664a03f
@@ -121,6 +121,7 @@ public sealed partial class ListsIslandViewModel : ViewModelBase, IDisposable
{ {
var dir = row?.WorkingDir; var dir = row?.WorkingDir;
if (string.IsNullOrWhiteSpace(dir) || !System.IO.Directory.Exists(dir)) return; if (string.IsNullOrWhiteSpace(dir) || !System.IO.Directory.Exists(dir)) return;
ForegroundHelper.AllowAny();
try try
{ {
System.Diagnostics.Process.Start(new System.Diagnostics.ProcessStartInfo System.Diagnostics.Process.Start(new System.Diagnostics.ProcessStartInfo