From a6f8a0b01ed3c36d537825de4c27acdec4e7d638 Mon Sep 17 00:00:00 2001
From: Thog <me@thog.eu>
Date: Tue, 29 Sep 2020 22:52:41 +0200
Subject: [PATCH] Do not show update being availaible when appveyor is still
 building

---
 Ryujinx/Updater/Updater.cs | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/Ryujinx/Updater/Updater.cs b/Ryujinx/Updater/Updater.cs
index 3c164e3132..56de31b005 100644
--- a/Ryujinx/Updater/Updater.cs
+++ b/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)