toast notifications(+) #17
1
ntfysh_client/SettingsDialog.Designer.cs
generated
1
ntfysh_client/SettingsDialog.Designer.cs
generated
@@ -99,7 +99,6 @@ namespace ntfysh_client
|
|||||||
//
|
//
|
||||||
timeout.Location = new System.Drawing.Point(13, 28);
|
timeout.Location = new System.Drawing.Point(13, 28);
|
||||||
timeout.Maximum = new decimal(new int[] { -1981284353, -1966660860, 0, 0 });
|
timeout.Maximum = new decimal(new int[] { -1981284353, -1966660860, 0, 0 });
|
||||||
timeout.Minimum = new decimal(new int[] { 1, 0, 0, int.MinValue });
|
|
||||||
timeout.Name = "timeout";
|
timeout.Name = "timeout";
|
||||||
timeout.Size = new System.Drawing.Size(506, 23);
|
timeout.Size = new System.Drawing.Size(506, 23);
|
||||||
timeout.TabIndex = 4;
|
timeout.TabIndex = 4;
|
||||||
|
@@ -8,7 +8,7 @@ namespace ntfysh_client
|
|||||||
public decimal Timeout
|
public decimal Timeout
|
||||||
{
|
{
|
||||||
get => timeout.Value;
|
get => timeout.Value;
|
||||||
set => timeout.Value = Math.Max(value, timeout.Minimum); // Ensure value is within bounds despite our changing minimum
|
set => timeout.Value = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
public decimal ReconnectAttempts
|
public decimal ReconnectAttempts
|
||||||
@@ -78,7 +78,6 @@ namespace ntfysh_client
|
|||||||
{
|
{
|
||||||
groupCustomNotificationSettings.Enabled = useCustomTrayNotifications.Checked;
|
groupCustomNotificationSettings.Enabled = useCustomTrayNotifications.Checked;
|
||||||
timeoutLabel.Text = useCustomTrayNotifications.Checked ? _customNotificationsTimeout : _windowsNotificationsTimeout;
|
timeoutLabel.Text = useCustomTrayNotifications.Checked ? _customNotificationsTimeout : _windowsNotificationsTimeout;
|
||||||
timeout.Minimum = useCustomTrayNotifications.Checked ? -1 : 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void UseCustomTrayNotifications_CheckedChanged(object sender, EventArgs e)
|
private void UseCustomTrayNotifications_CheckedChanged(object sender, EventArgs e)
|
||||||
@@ -87,6 +86,6 @@ namespace ntfysh_client
|
|||||||
}
|
}
|
||||||
|
|
||||||
private const string _windowsNotificationsTimeout = "Notification Toast Timeout (seconds, may be ignored by OS based on accessibility settings):";
|
private const string _windowsNotificationsTimeout = "Notification Toast Timeout (seconds, may be ignored by OS based on accessibility settings):";
|
||||||
private const string _customNotificationsTimeout = "Notification Toast Timeout (seconds, use -1 to require closing notification):";
|
private const string _customNotificationsTimeout = "Notification Toast Timeout (seconds, use 0 to require closing notification):";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user