Browse Source

correctly set notification manager properties.

Dan Walmsley 6 years ago
parent
commit
2b7e3db469
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/Avalonia.Controls/TopLevel.cs

+ 2 - 2
src/Avalonia.Controls/TopLevel.cs

@@ -103,7 +103,7 @@ namespace Avalonia.Controls
 
             PlatformImpl = impl;
 
-            _localNotificationManager = new NotificationManager();
+            LocalNotificationManager = new NotificationManager();
 
             dependencyResolver = dependencyResolver ?? AvaloniaLocator.Current;
             var styler = TryGetService<IStyler>(dependencyResolver);
@@ -118,7 +118,7 @@ namespace Avalonia.Controls
 
             if(_systemNotificationManager == null)
             {
-                _systemNotificationManager = _localNotificationManager;
+                SystemNotificationManager = _localNotificationManager;
             }
 
             Renderer = impl.CreateRenderer(this);