fix bug with release channel setting not being remembered (#5365)

This commit is contained in:
RickyRister 2024-12-28 15:08:07 -08:00 committed by GitHub
parent df9c5ae53c
commit f737d9a794
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 5 deletions

View file

@ -292,7 +292,7 @@ public:
}
ReleaseChannel *getUpdateReleaseChannel() const
{
return releaseChannels.at(updateReleaseChannel);
return releaseChannels.at(qMax(0, updateReleaseChannel));
}
QList<ReleaseChannel *> getUpdateReleaseChannels() const
{