Browse Source

Fix re-enabling windows when dialog is closed.

pull/877/head
Steven Kirk 10 years ago
parent
commit
8e6b6258ed
  1. 4
      src/Avalonia.Controls/Window.cs

4
src/Avalonia.Controls/Window.cs

@ -269,8 +269,8 @@ namespace Avalonia.Controls
using (BeginAutoSizing())
{
var affectedWindows = s_windows.Where(w => w.IsEnabled && w != this);
Window activated = affectedWindows.Where(w => w.IsActive).FirstOrDefault();
var affectedWindows = s_windows.Where(w => w.IsEnabled && w != this).ToList();
var activated = affectedWindows.Where(w => w.IsActive).FirstOrDefault();
SetIsEnabled(affectedWindows, false);
var modal = PlatformImpl.ShowDialog();

Loading…
Cancel
Save