fixed stupid init bug
This commit is contained in:
parent
654518e642
commit
753d8a4465
@ -78,11 +78,14 @@ namespace BreCalClient
|
|||||||
{
|
{
|
||||||
_notifications.Clear();
|
_notifications.Clear();
|
||||||
|
|
||||||
// load notification ids that have been processed
|
if (Properties.Settings.Default.Notifications != null)
|
||||||
foreach (string? notification_id in Properties.Settings.Default.Notifications)
|
|
||||||
{
|
{
|
||||||
if(Int32.TryParse(notification_id, out int result))
|
// load notification ids that have been processed
|
||||||
_notifications.Add(result, new AppNotification(result));
|
foreach (string? notification_id in Properties.Settings.Default.Notifications)
|
||||||
|
{
|
||||||
|
if (Int32.TryParse(notification_id, out int result))
|
||||||
|
_notifications.Add(result, new AppNotification(result));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user