misc: reduce publish warning.

This commit is contained in:
Zhang Dian
2025-09-26 00:46:24 +08:00
parent 55d472300e
commit 521ed1bd0f
7 changed files with 69 additions and 63 deletions

View File

@@ -27,7 +27,8 @@ public partial class NotificationDemo : UserControl
if (sender is RadioButton b && b.Content is string s)
{
Enum.TryParse<NotificationPosition>(s, out var t);
_manager.Position = t;
if (_manager is not null)
_manager.Position = t;
}
}