mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2025-07-01 23:35:55 +00:00
Don't display browser links in non-GUI environment
This commit is contained in:
parent
57a1c5eb76
commit
b080f7a81c
@ -8,6 +8,7 @@
|
|||||||
|
|
||||||
SystemProperties::SystemProperties()
|
SystemProperties::SystemProperties()
|
||||||
{
|
{
|
||||||
|
hasWindowManager = WMUtils::isRunningWindowManager();
|
||||||
isRunningWayland = WMUtils::isRunningWayland();
|
isRunningWayland = WMUtils::isRunningWayland();
|
||||||
isRunningXWayland = isRunningWayland && QGuiApplication::platformName() == "xcb";
|
isRunningXWayland = isRunningWayland && QGuiApplication::platformName() == "xcb";
|
||||||
|
|
||||||
@ -18,7 +19,8 @@ SystemProperties::SystemProperties()
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef STEAM_LINK
|
#ifndef STEAM_LINK
|
||||||
hasBrowser = true;
|
// Assume we can probably launch a browser if we're in a GUI environment
|
||||||
|
hasBrowser = hasWindowManager;
|
||||||
#else
|
#else
|
||||||
hasBrowser = false;
|
hasBrowser = false;
|
||||||
#endif
|
#endif
|
||||||
@ -29,8 +31,6 @@ SystemProperties::SystemProperties()
|
|||||||
hasDiscordIntegration = false;
|
hasDiscordIntegration = false;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
hasWindowManager = WMUtils::isRunningWindowManager();
|
|
||||||
|
|
||||||
unmappedGamepads = SdlInputHandler::getUnmappedGamepads();
|
unmappedGamepads = SdlInputHandler::getUnmappedGamepads();
|
||||||
|
|
||||||
// Populate data that requires talking to SDL. We do it all in one shot
|
// Populate data that requires talking to SDL. We do it all in one shot
|
||||||
|
Loading…
x
Reference in New Issue
Block a user