UI: If from 23.0.1 or 23.0.0, hide activity feed

If the previous version was 23.0.0 or 23.0.1, hide activity feed by
default when loading twitch panel UI.
master
jp9000 2019-03-06 15:21:08 -08:00
parent 7e23d1b63e
commit 8a50b28f55
1 changed files with 8 additions and 0 deletions

View File

@ -362,6 +362,14 @@ void TwitchAuth::LoadSecondaryUIPanes()
stat->setVisible(false);
feed->setVisible(false);
} else {
uint32_t lastVersion = config_get_int(App()->GlobalConfig(), "General",
"LastVersion");
if (lastVersion == MAKE_SEMANTIC_VERSION(23, 0, 0) ||
lastVersion == MAKE_SEMANTIC_VERSION(23, 0, 1)) {
feed->setVisible(false);
}
const char *dockStateStr = config_get_string(main->Config(),
service(), "DockState");
QByteArray dockState =