Browse Source

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.
jp9000 6 years ago
parent
commit
8a50b28f55
1 changed files with 8 additions and 0 deletions
  1. 8 0
      UI/auth-twitch.cpp

+ 8 - 0
UI/auth-twitch.cpp

@@ -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 =