Skip to content

Commit

Permalink
- 修复:不设置hash上传图片/文件到服务器后,桌面客户端会无限重复设置剪贴板
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeric-X committed Jun 4, 2024
1 parent 034d413 commit c3926fc
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 6 deletions.
3 changes: 3 additions & 0 deletions Changes.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
v2.8.2.1
- 修复:不设置hash上传图片/文件到服务器后,桌面客户端会无限重复设置剪贴板

v2.8.2
- 修复:服务端产生大量图片文件
- 变更:轮询间隔设置为0时在内部限制为0.5秒
Expand Down
4 changes: 2 additions & 2 deletions build/macos/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
<key>NSHighResolutionCapable</key>
<true/>
<key>CFBundleVersion</key>
<string>0.7.3</string>
<string>0.7.3.1</string>
<key>CFBundleShortVersionString</key>
<string>0.7.3</string>
<string>0.7.3.1</string>
</dict>
</plist>
2 changes: 1 addition & 1 deletion src/SyncClipboard.Core/Clipboard/Profile/FileProfile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ protected virtual async Task CheckHash(string localPath, CancellationToken cance
if (string.IsNullOrEmpty(existedMd5))
{
Hash = downloadedMd5;
await (WebDav?.PutText(RemoteProfilePath, ToJsonString(), cancelToken) ?? Task.CompletedTask);
await WebDav!.PutJson(RemoteProfilePath, ToDto(), cancelToken);
return;
}

Expand Down
2 changes: 1 addition & 1 deletion src/SyncClipboard.Desktop/AppConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ internal class AppConfig : IAppConfig
{
public string AppId => Env.AppId;
public string AppStringId => "SyncClipboard.Desktop";
public string AppVersion => "0.7.3";
public string AppVersion => "0.7.3.1";
public string UpdateApiUrl => "https://api.github.com/repos/Jeric-X/SyncClipboard.Desktop/releases";
public string UpdateUrl => "https://github.com/Jeric-X/SyncClipboard.Desktop/releases/latest";
}
3 changes: 3 additions & 0 deletions src/SyncClipboard.Desktop/Changes.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
0.7.3.1
- 修复:不设置hash上传图片/文件到服务器后,桌面客户端会无限重复设置剪贴板

0.7.3
- 修复:macOS Menu Bar图标在同步关闭状态下被裁切、颜色错误

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ public class SyncClipboardController
{
protected ClipboardProfileDTO? ProfileDtoCache = null;

private static async Task<IResult> PutFile(HttpContext content, string rootPath, string path)
private async Task<IResult> PutFile(HttpContext content, string rootPath, string path)
{
ProfileDtoCache = null;

var pathFolder = Path.Combine(rootPath, "file");
if (!Directory.Exists(pathFolder))
{
Expand Down
2 changes: 1 addition & 1 deletion src/SyncClipboard.WinUI3/AppConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ internal class AppConfig : IAppConfig
{
public string AppId => Env.AppId;
public string AppStringId => "SyncClipboard.WinUI";
public string AppVersion => "2.8.2";
public string AppVersion => "2.8.2.1";
public string UpdateApiUrl => "https://api.github.com/repos/Jeric-X/SyncClipboard/releases";
public string UpdateUrl => "https://github.com/Jeric-X/SyncClipboard/releases/latest";
}

0 comments on commit c3926fc

Please sign in to comment.