mirror of
https://github.com/BlossomiShymae/Needlework.Net.git
synced 2025-12-07 02:30:48 +01:00
bug fix in WebsocketView, optimization and others
This commit is contained in:
@@ -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 () =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user