diff --git a/GroundStation.cs b/GroundStation.cs
index 1f2fbe7..b6e8a38 100644
--- a/GroundStation.cs
+++ b/GroundStation.cs
@@ -317,18 +317,26 @@ public Priority PushoverDefaultFailurePriority {
public int PushoverEmergRetryInterval {
get => Properties.Settings.Default.PushoverEmergRetryInterval;
set {
- Properties.Settings.Default.PushoverEmergRetryInterval = value;
- CoreUtil.SaveSettings(Properties.Settings.Default);
- RaisePropertyChanged();
+ if (value >= 30 && value <= 86400) {
+ Properties.Settings.Default.PushoverEmergRetryInterval = value;
+ CoreUtil.SaveSettings(Properties.Settings.Default);
+ RaisePropertyChanged();
+ } else {
+ RaisePropertyChanged();
+ }
}
}
public int PushoverEmergExpireAfter {
get => Properties.Settings.Default.PushoverEmergExpireAfter;
set {
- Properties.Settings.Default.PushoverEmergExpireAfter = value;
- CoreUtil.SaveSettings(Properties.Settings.Default);
- RaisePropertyChanged();
+ if (value >= 30 && value <= 86400) {
+ Properties.Settings.Default.PushoverEmergExpireAfter = value;
+ CoreUtil.SaveSettings(Properties.Settings.Default);
+ RaisePropertyChanged();
+ } else {
+ RaisePropertyChanged();
+ }
}
}
diff --git a/Options.xaml b/Options.xaml
index 8ecfc6d..4f2ee90 100644
--- a/Options.xaml
+++ b/Options.xaml
@@ -136,7 +136,7 @@
HorizontalAlignment="Right"
VerticalAlignment="Center">
Emergency retry interval
- The interval in which a message with an Emergency prioity will alert in the Pushover client until it is acknowledged
+ The interval in which a message with an Emergency prioity will alert in the Pushover client until it is acknowledged. Minimum = 30 seconds. Maximum = 86400 seconds (24 hours)
-
+
+
+
+
+
@@ -160,7 +164,7 @@
HorizontalAlignment="Right"
VerticalAlignment="Center">
Emergency retry limit
- The time limit for which Emergency priority messages will alert for after being received
+ The time limit for which Emergency priority messages will alert for after being received. Minimum = 30 seconds. Maximum = 86400 seconds (24 hours)
-
+
+
+
+
+