소스 검색

Do not show update being availaible when appveyor is still building

Thog 5 년 전
부모
커밋
a6f8a0b01e
1개의 변경된 파일11개의 추가작업 그리고 0개의 파일을 삭제
  1. 11 0
      Ryujinx/Updater/Updater.cs

+ 11 - 0
Ryujinx/Updater/Updater.cs

@@ -77,6 +77,17 @@ namespace Ryujinx
                     _jobId    = (string)buildToken["jobs"][0]["jobId"];
                     _buildVer = (string)buildToken["version"];
                     _buildUrl = $"{AppveyorApiUrl}/buildjobs/{_jobId}/artifacts/ryujinx-{_buildVer}-{_platformExt}";
+
+                    // If build not done, assume no new update are availaible.
+                    if ((string)buildToken["jobs"][0]["status"] != "success")
+                    {
+                        if (showVersionUpToDate)
+                        {
+                            GtkDialog.CreateInfoDialog("Ryujinx - Updater", "You are already using the most updated version of Ryujinx!", "");
+                        }
+
+                        return;
+                    }
                 }
             }
             catch (Exception exception)