mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-03 20:13:56 -07:00
refactor: remove ReleaseChannel keeping track of its own indexes (#5366)
This commit is contained in:
parent
c8d49b5bf9
commit
25d21a3da6
7 changed files with 13 additions and 18 deletions
|
|
@ -1139,9 +1139,9 @@ void SettingsCache::setDownloadSpoilerStatus(bool _spoilerStatus)
|
|||
emit downloadSpoilerStatusChanged();
|
||||
}
|
||||
|
||||
void SettingsCache::setUpdateReleaseChannel(int _updateReleaseChannel)
|
||||
void SettingsCache::setUpdateReleaseChannelIndex(int value)
|
||||
{
|
||||
updateReleaseChannel = _updateReleaseChannel;
|
||||
updateReleaseChannel = value;
|
||||
settings->setValue("personal/updatereleasechannel", updateReleaseChannel);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -290,6 +290,10 @@ public:
|
|||
{
|
||||
return seenTips;
|
||||
}
|
||||
int getUpdateReleaseChannelIndex() const
|
||||
{
|
||||
return updateReleaseChannel;
|
||||
}
|
||||
ReleaseChannel *getUpdateReleaseChannel() const
|
||||
{
|
||||
return releaseChannels.at(qMax(0, updateReleaseChannel));
|
||||
|
|
@ -712,7 +716,7 @@ public slots:
|
|||
void setCheckUpdatesOnStartup(QT_STATE_CHANGED_T value);
|
||||
void setNotifyAboutUpdate(QT_STATE_CHANGED_T _notifyaboutupdate);
|
||||
void setNotifyAboutNewVersion(QT_STATE_CHANGED_T _notifyaboutnewversion);
|
||||
void setUpdateReleaseChannel(int _updateReleaseChannel);
|
||||
void setUpdateReleaseChannelIndex(int value);
|
||||
void setMaxFontSize(int _max);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue