Răsfoiți Sursa

UI: Avoid registering CEF OAuth integrations on Wayland

(cherry picked from commit 169cd07c42ddf1d0693094badb75f6255c052fac)
tytan652 2 ani în urmă
părinte
comite
40fdec218c
2 a modificat fișierele cu 10 adăugiri și 0 ștergeri
  1. 5 0
      UI/auth-restream.cpp
  2. 5 0
      UI/auth-twitch.cpp

+ 5 - 0
UI/auth-restream.cpp

@@ -282,6 +282,11 @@ static void DeleteCookies()
 
 void RegisterRestreamAuth()
 {
+#if !defined(__APPLE__) && !defined(_WIN32)
+	if (QApplication::platformName().contains("wayland"))
+		return;
+#endif
+
 	OAuth::RegisterOAuth(restreamDef, CreateRestreamAuth,
 			     RestreamAuth::Login, DeleteCookies);
 }

+ 5 - 0
UI/auth-twitch.cpp

@@ -512,6 +512,11 @@ static void DeleteCookies()
 
 void RegisterTwitchAuth()
 {
+#if !defined(__APPLE__) && !defined(_WIN32)
+	if (QApplication::platformName().contains("wayland"))
+		return;
+#endif
+
 	OAuth::RegisterOAuth(twitchDef, CreateTwitchAuth, TwitchAuth::Login,
 			     DeleteCookies);
 }