UI: Avoid registering CEF OAuth integrations on Wayland

This commit is contained in:
tytan652
2023-05-07 13:51:52 -07:00
committed by Jim
parent d63ed016b4
commit 169cd07c42
2 changed files with 10 additions and 0 deletions
+5
View File
@@ -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);
}