feat(app): 初始化自动关机工具首个版本
实现基于 WPF 的 AutoShutdown 主界面,支持关机、重启、睡眠、休眠、唤醒、锁屏和注销等电源任务。 支持指定时间和倒计时计划、执行前提醒、系统关机撤销、Windows 唤醒任务、托盘运行、自定义图标以及 OmniNotify 通知适配。 修复关闭到托盘时的运行提醒,并支持单击托盘图标打开或收起主界面。 补充 README、发布配置和 win-x64 Release 输出要求。 Release: win-x64
This commit is contained in:
12
Models/NotificationSettings.cs
Normal file
12
Models/NotificationSettings.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
namespace AutoShutdown.Models;
|
||||
|
||||
internal sealed class NotificationSettings
|
||||
{
|
||||
public NotificationMode Mode { get; set; } = NotificationMode.Local;
|
||||
|
||||
public string OmniNotifyEndpoint { get; set; } = "http://127.0.0.1:19845/notify";
|
||||
|
||||
public string Channel { get; set; } = "default";
|
||||
|
||||
public static NotificationSettings Default() => new();
|
||||
}
|
||||
Reference in New Issue
Block a user