fix(ui): open diff viewer and merge window as independent top-level windows

Owned windows are pinned above their owner by Windows, so the main window
could never come to the front. Show() without an owner and centre manually.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
mika kuns
2026-10-01 14:49:27 +02:00
co-authored by Claude Sonnet 5.5
parent 5dae5ff679
commit 0fea339b6d
6 changed files with 35 additions and 5 deletions
@@ -161,7 +161,8 @@ public partial class DetailsIslandView : UserControl
var window = new DiffViewerView { DataContext = diffVm };
window.Closed += (_, _) => _diffViewerWindow = null;
_diffViewerWindow = window;
window.Show(owner);
window.CenterOn(owner);
window.Show(); // no owner: an owned window would be pinned above the main window
return System.Threading.Tasks.Task.CompletedTask;
};