diff options
| author | Thog <me@thog.eu> | 2020-09-29 22:52:41 +0200 |
|---|---|---|
| committer | Thog <me@thog.eu> | 2020-09-29 22:52:41 +0200 |
| commit | a6f8a0b01ed3c36d537825de4c27acdec4e7d638 (patch) | |
| tree | b3dc7468c3799c918db9faff74e097aaf728ffbb | |
| parent | 1560f236da032b36110672eeceb0b3ca62b68e2d (diff) | |
Do not show update being availaible when appveyor is still building
| -rw-r--r-- | Ryujinx/Updater/Updater.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Ryujinx/Updater/Updater.cs b/Ryujinx/Updater/Updater.cs index 3c164e31..56de31b0 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) |
