small cleanup

pull/14094/head
Steven Powell 2022-05-03 16:34:32 -07:00
parent 352acecb40
commit 75a34f657a
1 changed files with 5 additions and 4 deletions

View File

@ -995,14 +995,15 @@ void Window::checkForUpdates()
return;
}
QJsonObject links = latestRelease["links"].toObject();
QString link;
QString key;
#if __linux__
link = links["linux"].toString();
key = "linux";
#elif __APPLE__
link = links["darwin"].toString();
key = "darwin";
#else
link = links["windows"].toString();
key = "windows";
#endif
QString link = links[key].toString();
notifyUpdate(latestReleaseVersion, link);
}