Explorar o código

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 %!s(int64=6) %!d(string=hai) anos
pai
achega
8a50b28f55
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  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 =