From 122d515f1fadca45744c149b05df7a1198c43931 Mon Sep 17 00:00:00 2001 From: Jeirc-X Date: Wed, 7 Aug 2024 23:43:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E4=BB=B6=E7=B1=BB=E5=9E=8B=E8=BF=87?= =?UTF-8?q?=E6=BB=A4=EF=BC=8CUI=E9=83=A8=E5=88=86=EF=BC=88=E5=85=A8?= =?UTF-8?q?=E5=B9=B3=E5=8F=B0=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Clipboard/ClipboardFactoryBase.cs | 2 +- .../I18n/Strings.Designer.cs | 20 +++---- src/SyncClipboard.Core/I18n/Strings.resx | 6 +- .../I18n/Strings.zh-CN.resx | 6 +- .../Views/FileSyncFilterSettingPage.axaml | 59 +++++++++++++++++++ .../Views/FileSyncFilterSettingPage.axaml.cs | 31 ++++++++++ .../Views/SyncSettingPage.axaml | 5 ++ .../Views/FileSyncFilterSettingPage.xaml | 3 +- 8 files changed, 113 insertions(+), 19 deletions(-) create mode 100644 src/SyncClipboard.Desktop/Views/FileSyncFilterSettingPage.axaml create mode 100644 src/SyncClipboard.Desktop/Views/FileSyncFilterSettingPage.axaml.cs diff --git a/src/SyncClipboard.Core/Clipboard/ClipboardFactoryBase.cs b/src/SyncClipboard.Core/Clipboard/ClipboardFactoryBase.cs index 33e5041c..8e035485 100644 --- a/src/SyncClipboard.Core/Clipboard/ClipboardFactoryBase.cs +++ b/src/SyncClipboard.Core/Clipboard/ClipboardFactoryBase.cs @@ -120,7 +120,7 @@ public async Task CreateProfileDto(string destFolder) bool isCut = (meta.Effects & DragDropEffects.Move) == DragDropEffects.Move; if ((doNotUploadWhenCut && isCut) || !profile.IsAvailableFromLocal()) { - return new TextProfile("").ToDto(); + return new UnknownProfile().ToDto(); } if (profile is FileProfile fileProfile) diff --git a/src/SyncClipboard.Core/I18n/Strings.Designer.cs b/src/SyncClipboard.Core/I18n/Strings.Designer.cs index acca17b3..37f95800 100644 --- a/src/SyncClipboard.Core/I18n/Strings.Designer.cs +++ b/src/SyncClipboard.Core/I18n/Strings.Designer.cs @@ -78,15 +78,6 @@ public static string Address { } } - /// - /// 查找类似 Apply 的本地化字符串。 - /// - public static string Apply { - get { - return ResourceManager.GetString("Apply", resourceCulture); - } - } - /// /// 查找类似 Assistant 的本地化字符串。 /// @@ -520,7 +511,7 @@ public static string FileFilterDescription { } /// - /// 查找类似 File Sync Filter 的本地化字符串。 + /// 查找类似 Uploading File Filter 的本地化字符串。 /// public static string FileSyncFilter { get { @@ -960,6 +951,15 @@ public static string RunAtSystemStartup { } } + /// + /// 查找类似 Save 的本地化字符串。 + /// + public static string Save { + get { + return ResourceManager.GetString("Save", resourceCulture); + } + } + /// /// 查找类似 Select 的本地化字符串。 /// diff --git a/src/SyncClipboard.Core/I18n/Strings.resx b/src/SyncClipboard.Core/I18n/Strings.resx index 1aa5440b..4e626a94 100644 --- a/src/SyncClipboard.Core/I18n/Strings.resx +++ b/src/SyncClipboard.Core/I18n/Strings.resx @@ -526,7 +526,7 @@ Retry Times - File Sync Filter + Uploading File Filter Filter Mode @@ -543,7 +543,7 @@ Each file extension per line - - Apply + + Save \ No newline at end of file diff --git a/src/SyncClipboard.Core/I18n/Strings.zh-CN.resx b/src/SyncClipboard.Core/I18n/Strings.zh-CN.resx index 730ea4cc..e45449e9 100644 --- a/src/SyncClipboard.Core/I18n/Strings.zh-CN.resx +++ b/src/SyncClipboard.Core/I18n/Strings.zh-CN.resx @@ -526,7 +526,7 @@ 重试次数 - 同步文件过滤 + 上传文件过滤 过滤模式 @@ -543,7 +543,7 @@ 每行一个文件扩展名 - - 应用 + + 保存 \ No newline at end of file diff --git a/src/SyncClipboard.Desktop/Views/FileSyncFilterSettingPage.axaml b/src/SyncClipboard.Desktop/Views/FileSyncFilterSettingPage.axaml new file mode 100644 index 00000000..16c5af87 --- /dev/null +++ b/src/SyncClipboard.Desktop/Views/FileSyncFilterSettingPage.axaml @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +