瀏覽代碼

Revert "UI: Work around Qt dock restore crash"

This reverts commit 3dcf68f8ed500a23154f502a85caa109afd04d81.

The bug that this was meant to work around was most likely QTBUG-102718,
which was fixed in Qt 6.2.5, 6.3.1, and 6.4.0. The minimum version of Qt
we currently support is Qt 6.4.2 because it is what is available on
Ubuntu 24.04. Thus, we should not need this workaround now.

https://bugreports.qt.io/browse/QTBUG-102718
Ryan Foster 1 月之前
父節點
當前提交
e187f9acee
共有 3 個文件被更改,包括 3 次插入9 次删除
  1. 1 3
      frontend/oauth/RestreamAuth.cpp
  2. 1 3
      frontend/oauth/TwitchAuth.cpp
  3. 1 3
      frontend/oauth/YoutubeAuth.cpp

+ 1 - 3
frontend/oauth/RestreamAuth.cpp

@@ -203,9 +203,7 @@ void RestreamAuth::LoadUI()
 	} else {
 		const char *dockStateStr = config_get_string(main->Config(), service(), "DockState");
 		QByteArray dockState = QByteArray::fromBase64(QByteArray(dockStateStr));
-
-		if (main->isVisible() || !main->isMaximized())
-			main->restoreState(dockState);
+		main->restoreState(dockState);
 	}
 
 	uiLoaded = true;

+ 1 - 3
frontend/oauth/TwitchAuth.cpp

@@ -273,9 +273,7 @@ void TwitchAuth::LoadUI()
 	} else {
 		const char *dockStateStr = config_get_string(main->Config(), service(), "DockState");
 		QByteArray dockState = QByteArray::fromBase64(QByteArray(dockStateStr));
-
-		if (main->isVisible() || !main->isMaximized())
-			main->restoreState(dockState);
+		main->restoreState(dockState);
 	}
 
 	TryLoadSecondaryUIPanes();

+ 1 - 3
frontend/oauth/YoutubeAuth.cpp

@@ -148,9 +148,7 @@ void YoutubeAuth::LoadUI()
 	if (!firstLoad) {
 		const char *dockStateStr = config_get_string(main->Config(), service(), "DockState");
 		QByteArray dockState = QByteArray::fromBase64(QByteArray(dockStateStr));
-
-		if (main->isVisible() || !main->isMaximized())
-			main->restoreState(dockState);
+		main->restoreState(dockState);
 	}
 
 	uiLoaded = true;