Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/ui/Features/Shared/MessageBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,12 @@ public static async Task<MessageBoxResult> Show(
string? custom3 = null)
{
var msgBox = new MessageBox(title, message, buttons, icon, custom1, custom2, custom3);

// Keep the message box above undocked tool windows (audio visualizer / video player),
// which float on top of the main window via KeepTopmostWhileOwnerActive. Without this the
// message box opens behind them in undocked mode. (#12268)
WindowService.KeepTopmostWhileOwnerActive(msgBox, owner);

return await msgBox.ShowDialog<MessageBoxResult>(owner);
}

Expand Down