Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 0 additions & 34 deletions Actions/DoSpeechAction.cs

This file was deleted.

40 changes: 0 additions & 40 deletions Controls/DoSpeechSettingsControl.cs

This file was deleted.

6 changes: 1 addition & 5 deletions Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
_logger?.LogWarning("[SystemTools]FFmpeg 功能已自动关闭:缺少依赖文件 ffmpeg.exe。");
}

if (GlobalConstants.MainConfig.Data.EnableFaceRecognition)

Check warning on line 132 in Plugin.cs

View workflow job for this annotation

GitHub Actions / build

Dereference of a possibly null reference.
{
if (_faceRecognitionRegistered)
{
Expand Down Expand Up @@ -278,8 +278,6 @@
RegisterActionIfEnabled<BackgroundPlayAudioAction, BackgroundPlayAudioSettingsControl>(services, config,
"SystemTools.BackgroundPlayAudio");
RegisterActionIfEnabled<ShowDesktopAction>(services, config, "SystemTools.ShowDesktop");
// 语音播报
RegisterActionIfEnabled<DoSpeechAction, DoSpeechSettingsControl>(services, config, "SystemTools.DoSpeech");

// 悬浮窗设置
if (config.EnableFloatingWindowFeature)
Expand Down Expand Up @@ -516,7 +514,7 @@

if (HasAnyActionEnabled(config, "SystemTools.ClearAllNotifications", "SystemTools.RestartAsAdmin",
"SystemTools.LoadTemporaryClassPlan", "SystemTools.OpenAppSettings",
"SystemTools.OpenProfileEditor", "SystemTools.OpenClassSwapWindow","SystemTools.DoSpeech"))
"SystemTools.OpenProfileEditor", "SystemTools.OpenClassSwapWindow"))
{
IActionService.ActionMenuTree["SystemTools 行动"].Add(new ActionMenuTreeGroup("ClassIsland…", "\uE5CB"));
BuildClassIslandMenu(config);
Expand Down Expand Up @@ -863,8 +861,6 @@
items.Add(new ActionMenuTreeItem("SystemTools.OpenProfileEditor", "打开档案编辑", "\uE699"));
if (config.IsActionEnabled("SystemTools.OpenClassSwapWindow"))
items.Add(new ActionMenuTreeItem("SystemTools.OpenClassSwapWindow", "打开换课窗口", "\uE13B"));
if (config.IsActionEnabled("SystemTools.DoSpeech"))
items.Add(new ActionMenuTreeItem("SystemTools.DoSpeech", "语音播报", "\uE5C7"));

if (items.Count > 0)
{
Expand Down
9 changes: 0 additions & 9 deletions Settings/DoSpeechSettings.cs

This file was deleted.

1 change: 0 additions & 1 deletion SettingsPage/SystemToolsSettingsViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,6 @@ public void InitializeFeatureItems()
("SystemTools.OpenAppSettings", "打开应用设置", "ClassIsland"),
("SystemTools.OpenProfileEditor", "打开档案编辑", "ClassIsland"),
("SystemTools.OpenClassSwapWindow", "打开换课窗口", "ClassIsland"),
("SystemTools.DoSpeech", "语音播报", "ClassIsland"),
};

if (Settings.EnableFloatingWindowFeature)
Expand Down
Loading