增加开机自启功能和自启设置

This commit is contained in:
ww-rm
2025-09-29 23:26:06 +08:00
parent 6900968555
commit bd9f8d714a
10 changed files with 421 additions and 173 deletions

View File

@@ -1,5 +1,7 @@
using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
using Spine.SpineWrappers;
using SpineViewer.Services;
using System;
using System.Collections.Generic;
using System.IO;
@@ -73,6 +75,12 @@ namespace SpineViewer.Models
#region
[ObservableProperty]
private bool _autoRun;
[ObservableProperty]
private string _autoRunWorkspaceConfigPath;
[ObservableProperty]
private bool _wallpaperView;
@@ -85,6 +93,14 @@ namespace SpineViewer.Models
[ObservableProperty]
private AppLanguage _appLanguage;
public RelayCommand Cmd_SelectAutoRunWorkspaceConfigPath => _cmd_SelectAutoRunWorkspaceConfigPath ??= new(() =>
{
if (!DialogService.ShowOpenJsonDialog(out var fileName))
return;
AutoRunWorkspaceConfigPath = fileName;
});
private RelayCommand? _cmd_SelectAutoRunWorkspaceConfigPath;
#endregion
}
}