feat: 优化触发器配置体验

- 根据触发器类型动态展示对应配置区域,减少无关字段干扰。
- 将单次、每日、每周、每月和生效时间范围改为日期选择器与时分秒下拉选择,避免手动输入时间格式。
- 为单次执行增加延后执行快捷设置,支持常用快捷按钮和自定义分钟、小时、天后执行。
- 移除开机自启设置、注册表写入逻辑和相关配置字段,降低对用户系统的影响。
- 同步优化部分任务状态、触发摘要和设置界面文案。
This commit is contained in:
2026-05-21 10:54:20 +08:00
parent 2a669bdfe7
commit d33fe30569
8 changed files with 489 additions and 144 deletions

View File

@@ -11,7 +11,6 @@ public partial class SettingsWindow : Window
InitializeComponent();
Owner = owner;
_settings = settings;
StartWithWindowsBox.IsChecked = settings.StartWithWindows;
UrlBox.Text = settings.OmniNotifyUrl;
RetentionDaysBox.Text = settings.LogRetentionDays.ToString();
MaxRecordsBox.Text = settings.MaxLogRecords.ToString();
@@ -44,7 +43,6 @@ public partial class SettingsWindow : Window
return;
}
_settings.StartWithWindows = StartWithWindowsBox.IsChecked == true;
_settings.OmniNotifyUrl = UrlBox.Text.Trim();
_settings.LogRetentionDays = days;
_settings.MaxLogRecords = max;