bug fix in WebsocketView, optimization and others

This commit is contained in:
AoshiW
2024-08-16 08:17:43 +02:00
parent b0b5476c48
commit 3a7d39971a
10 changed files with 71 additions and 52 deletions

View File

@@ -63,7 +63,7 @@ namespace Needlework.Net.Desktop.ViewModels
private void ProcessEvents(object? obj)
{
while (true)
while (!IsUpdateShown)
{
Task.Run(CheckLatestVersionAsync);
@@ -84,7 +84,7 @@ namespace Needlework.Net.Desktop.ViewModels
var currentVersion = int.Parse(Version.Replace(".", ""));
if (release.IsLatest(currentVersion) && !IsUpdateShown)
if (release.IsLatest(currentVersion))
{
Avalonia.Threading.Dispatcher.UIThread.Post(async () =>
{