HamBook – Diff between revs 54 and 55
?pathlinks?
Rev 54 | Rev 55 | |||
---|---|---|---|---|
Line 15... | Line 15... | |||
15 | new NotificationState { Type = NotificationType.SignalScanDetect, Enabled = false, LingerTime = 1000 } |
15 | new NotificationState { Type = NotificationType.SignalScanDetect, Enabled = false, LingerTime = 1000 } |
|
16 | }; |
16 | }; |
|
Line 17... | Line 17... | |||
17 | |
17 | |
|
18 | public Notifications() |
18 | public Notifications() |
|
19 | { |
19 | { |
|
- | 20 | if (_notificationStates.Count != 0) |
||
- | 21 | { |
||
- | 22 | return; |
||
- | 23 | } |
||
20 | if (_notificationStates.Count == 0) |
24 | |
|
- | 25 | foreach (var state in _notificationState) |
||
21 | foreach (var state in _notificationState) |
26 | { |
|
- | 27 | _notificationStates.TryAdd(state.Type, state); |
||
22 | _notificationStates.TryAdd(state.Type, state); |
28 | } |
|
Line 23... | Line 29... | |||
23 | } |
29 | } |
|
24 | |
30 | |
|
25 | public NotificationState[] State |
31 | public NotificationState[] State |