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()) using (BeginAutoSizing())
{ {
var affectedWindows = s_windows.Where(w => w.IsEnabled && w != this); var affectedWindows = s_windows.Where(w => w.IsEnabled && w != this).ToList();
Window activated = affectedWindows.Where(w => w.IsActive).FirstOrDefault(); var activated = affectedWindows.Where(w => w.IsActive).FirstOrDefault();
SetIsEnabled(affectedWindows, false); SetIsEnabled(affectedWindows, false);
var modal = PlatformImpl.ShowDialog(); var modal = PlatformImpl.ShowDialog();

Loading…
Cancel
Save