Add missing feature rememberance to client (#2275)

Fix #2249
Add the ability for the client to remember the missing features that it
received from the server it last connected to and not display the
"missing/optional feature" message at every login.
This commit is contained in:
woogerboy21 2016-11-29 15:50:00 -05:00 committed by GitHub
parent f6e4ee9a4a
commit d039c9b6bd
5 changed files with 49 additions and 3 deletions

View file

@ -86,6 +86,7 @@ private:
QString picUrl;
QString picUrlFallback;
QString clientID;
QString knownMissingFeatures;
int pixmapCacheSize;
bool scaleCards;
bool showMessagePopups;
@ -181,7 +182,9 @@ public:
bool getRememberGameSettings() const { return rememberGameSettings; }
int getKeepAlive() const { return keepalive; }
void setClientID(QString clientID);
void setKnownMissingFeatures(QString _knownMissingFeatures);
QString getClientID() { return clientID; }
QString getKnownMissingFeatures() { return knownMissingFeatures; }
ShortcutsSettings& shortcuts() const { return *shortcutsSettings; }
CardDatabaseSettings& cardDatabase() const { return *cardDatabaseSettings; }
ServersSettings& servers() const { return *serversSettings; }