diff --git a/DownKyi/Languages/Default.xaml b/DownKyi/Languages/Default.xaml
index e3f29bb..9be0a8b 100644
--- a/DownKyi/Languages/Default.xaml
+++ b/DownKyi/Languages/Default.xaml
@@ -136,6 +136,7 @@
画质
视频编码
空格
+ 恢复默认
弹幕
按类型屏蔽
diff --git a/DownKyi/ViewModels/Settings/ViewVideoViewModel.cs b/DownKyi/ViewModels/Settings/ViewVideoViewModel.cs
index 5f47ece..6391106 100644
--- a/DownKyi/ViewModels/Settings/ViewVideoViewModel.cs
+++ b/DownKyi/ViewModels/Settings/ViewVideoViewModel.cs
@@ -307,6 +307,27 @@ namespace DownKyi.ViewModels.Settings
SelectedOptionalField = -1;
}
+ // 重置选中文件名字段
+ private DelegateCommand resetCommand;
+ public DelegateCommand ResetCommand => resetCommand ?? (resetCommand = new DelegateCommand(ExecuteResetCommand));
+
+ ///
+ /// 重置选中文件名字段
+ ///
+ private void ExecuteResetCommand()
+ {
+ bool isSucceed = SettingsManager.GetInstance().SetFileNameParts(null);
+ PublishTip(isSucceed);
+
+ List fileNameParts = SettingsManager.GetInstance().GetFileNameParts();
+ SelectedFileName.Clear();
+ foreach (FileNamePart item in fileNameParts)
+ {
+ string display = DisplayFileNamePart(item);
+ SelectedFileName.Add(new DisplayFileNamePart { Id = item, Title = display });
+ }
+ }
+
#endregion
diff --git a/DownKyi/Views/Settings/ViewVideo.xaml b/DownKyi/Views/Settings/ViewVideo.xaml
index eba06b7..1938bfd 100644
--- a/DownKyi/Views/Settings/ViewVideo.xaml
+++ b/DownKyi/Views/Settings/ViewVideo.xaml
@@ -144,6 +144,7 @@
+
@@ -194,6 +195,18 @@
+
+