|
|
@ -118,9 +118,9 @@ class GlobalOptions extends OptionsCollection { |
|
|
|
), |
|
|
|
), |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
final allowed = pushNotificationsDistributor.values.containsKey(pushNotificationsDistributor.value); |
|
|
|
final enabled = pushNotificationsDistributor.values.isNotEmpty; |
|
|
|
pushNotificationsEnabled.enabled = allowed; |
|
|
|
pushNotificationsEnabled.enabled = enabled; |
|
|
|
if (!allowed) { |
|
|
|
if (!enabled) { |
|
|
|
pushNotificationsDistributor.reset(); |
|
|
|
pushNotificationsDistributor.reset(); |
|
|
|
pushNotificationsEnabled.reset(); |
|
|
|
pushNotificationsEnabled.reset(); |
|
|
|
} |
|
|
|
} |
|
|
|