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
8 changes: 4 additions & 4 deletions EmoTracker/ApplicationModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,10 @@ private void ShowBroadcastView(object obj)
mBroadcastView = new BroadcastView();
mBroadcastView.Closing += (_, _) => mBroadcastView = null;

var mainWindow = (Avalonia.Application.Current?.ApplicationLifetime
as Avalonia.Controls.ApplicationLifetimes.IClassicDesktopStyleApplicationLifetime)?.MainWindow;

mBroadcastView.Show(mainWindow);
// Show without an owner so the broadcast view is an independent
// top-level window. Passing the main window as owner causes the
// OS to force the broadcast view above the main window at all times.
mBroadcastView.Show();
}
else
{
Expand Down
Loading