Release v0.2.0

This commit is contained in:
2026-05-20 12:53:24 +08:00
parent 09b68ada48
commit 36f4256515
12 changed files with 443 additions and 122 deletions

View File

@@ -247,7 +247,6 @@ public partial class MainWindow : Window
private void LoadSettings()
{
StartWithWindowsBox.IsChecked = _state.Settings.StartWithWindows;
DndBox.IsChecked = _state.Settings.DndEnabled;
RateLimitBox.Text = _state.Settings.MaxMessagesPerSecond.ToString();
RetainDaysBox.Text = _state.Settings.RetainDays.ToString();
@@ -257,13 +256,11 @@ public partial class MainWindow : Window
private void SaveSettings()
{
_state.Settings.StartWithWindows = StartWithWindowsBox.IsChecked == true;
_state.Settings.DndEnabled = DndBox.IsChecked == true;
_state.Settings.MaxMessagesPerSecond = ReadInt(RateLimitBox, _state.Settings.MaxMessagesPerSecond);
_state.Settings.RetainDays = ReadInt(RetainDaysBox, _state.Settings.RetainDays);
_state.Settings.RetainCount = ReadInt(RetainCountBox, _state.Settings.RetainCount);
_state.Settings.LocalPort = ReadInt(PortBox, _state.Settings.LocalPort);
StartupManager.Apply(_state.Settings.StartWithWindows);
}
private void RefreshHistoryFilters()