mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2025-08-17 00:46:11 +00:00
Added option to disable pre launch warning and delay
This commit is contained in:
parent
11dc244857
commit
65c04fd560
@ -1236,6 +1236,17 @@ Flickable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CheckBox {
|
||||||
|
id: configurationWarningsCheck
|
||||||
|
width: parent.width
|
||||||
|
text: qsTr("Show configuration warnings")
|
||||||
|
font.pointSize: 12
|
||||||
|
checked: StreamingPreferences.configurationWarnings
|
||||||
|
onCheckedChanged: {
|
||||||
|
StreamingPreferences.configurationWarnings = checked
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
CheckBox {
|
CheckBox {
|
||||||
visible: SystemProperties.hasDiscordIntegration
|
visible: SystemProperties.hasDiscordIntegration
|
||||||
id: discordPresenceCheck
|
id: discordPresenceCheck
|
||||||
|
@ -35,6 +35,7 @@
|
|||||||
#define SER_STARTWINDOWED "startwindowed"
|
#define SER_STARTWINDOWED "startwindowed"
|
||||||
#define SER_FRAMEPACING "framepacing"
|
#define SER_FRAMEPACING "framepacing"
|
||||||
#define SER_CONNWARNINGS "connwarnings"
|
#define SER_CONNWARNINGS "connwarnings"
|
||||||
|
#define SER_CONFWARNINGS "confwarnings"
|
||||||
#define SER_UIDISPLAYMODE "uidisplaymode"
|
#define SER_UIDISPLAYMODE "uidisplaymode"
|
||||||
#define SER_RICHPRESENCE "richpresence"
|
#define SER_RICHPRESENCE "richpresence"
|
||||||
#define SER_GAMEPADMOUSE "gamepadmouse"
|
#define SER_GAMEPADMOUSE "gamepadmouse"
|
||||||
@ -134,6 +135,7 @@ void StreamingPreferences::reload()
|
|||||||
absoluteTouchMode = settings.value(SER_ABSTOUCHMODE, true).toBool();
|
absoluteTouchMode = settings.value(SER_ABSTOUCHMODE, true).toBool();
|
||||||
framePacing = settings.value(SER_FRAMEPACING, false).toBool();
|
framePacing = settings.value(SER_FRAMEPACING, false).toBool();
|
||||||
connectionWarnings = settings.value(SER_CONNWARNINGS, true).toBool();
|
connectionWarnings = settings.value(SER_CONNWARNINGS, true).toBool();
|
||||||
|
configurationWarnings = settings.value(SER_CONFWARNINGS, true).toBool();
|
||||||
richPresence = settings.value(SER_RICHPRESENCE, true).toBool();
|
richPresence = settings.value(SER_RICHPRESENCE, true).toBool();
|
||||||
gamepadMouse = settings.value(SER_GAMEPADMOUSE, true).toBool();
|
gamepadMouse = settings.value(SER_GAMEPADMOUSE, true).toBool();
|
||||||
detectNetworkBlocking = settings.value(SER_DETECTNETBLOCKING, true).toBool();
|
detectNetworkBlocking = settings.value(SER_DETECTNETBLOCKING, true).toBool();
|
||||||
@ -331,6 +333,7 @@ void StreamingPreferences::save()
|
|||||||
settings.setValue(SER_ABSTOUCHMODE, absoluteTouchMode);
|
settings.setValue(SER_ABSTOUCHMODE, absoluteTouchMode);
|
||||||
settings.setValue(SER_FRAMEPACING, framePacing);
|
settings.setValue(SER_FRAMEPACING, framePacing);
|
||||||
settings.setValue(SER_CONNWARNINGS, connectionWarnings);
|
settings.setValue(SER_CONNWARNINGS, connectionWarnings);
|
||||||
|
settings.setValue(SER_CONFWARNINGS, configurationWarnings);
|
||||||
settings.setValue(SER_RICHPRESENCE, richPresence);
|
settings.setValue(SER_RICHPRESENCE, richPresence);
|
||||||
settings.setValue(SER_GAMEPADMOUSE, gamepadMouse);
|
settings.setValue(SER_GAMEPADMOUSE, gamepadMouse);
|
||||||
settings.setValue(SER_PACKETSIZE, packetSize);
|
settings.setValue(SER_PACKETSIZE, packetSize);
|
||||||
|
@ -124,6 +124,7 @@ public:
|
|||||||
Q_PROPERTY(bool absoluteTouchMode MEMBER absoluteTouchMode NOTIFY absoluteTouchModeChanged)
|
Q_PROPERTY(bool absoluteTouchMode MEMBER absoluteTouchMode NOTIFY absoluteTouchModeChanged)
|
||||||
Q_PROPERTY(bool framePacing MEMBER framePacing NOTIFY framePacingChanged)
|
Q_PROPERTY(bool framePacing MEMBER framePacing NOTIFY framePacingChanged)
|
||||||
Q_PROPERTY(bool connectionWarnings MEMBER connectionWarnings NOTIFY connectionWarningsChanged)
|
Q_PROPERTY(bool connectionWarnings MEMBER connectionWarnings NOTIFY connectionWarningsChanged)
|
||||||
|
Q_PROPERTY(bool configurationWarnings MEMBER configurationWarnings NOTIFY configurationWarningsChanged)
|
||||||
Q_PROPERTY(bool richPresence MEMBER richPresence NOTIFY richPresenceChanged)
|
Q_PROPERTY(bool richPresence MEMBER richPresence NOTIFY richPresenceChanged)
|
||||||
Q_PROPERTY(bool gamepadMouse MEMBER gamepadMouse NOTIFY gamepadMouseChanged)
|
Q_PROPERTY(bool gamepadMouse MEMBER gamepadMouse NOTIFY gamepadMouseChanged)
|
||||||
Q_PROPERTY(bool detectNetworkBlocking MEMBER detectNetworkBlocking NOTIFY detectNetworkBlockingChanged)
|
Q_PROPERTY(bool detectNetworkBlocking MEMBER detectNetworkBlocking NOTIFY detectNetworkBlockingChanged)
|
||||||
@ -164,6 +165,7 @@ public:
|
|||||||
bool absoluteTouchMode;
|
bool absoluteTouchMode;
|
||||||
bool framePacing;
|
bool framePacing;
|
||||||
bool connectionWarnings;
|
bool connectionWarnings;
|
||||||
|
bool configurationWarnings;
|
||||||
bool richPresence;
|
bool richPresence;
|
||||||
bool gamepadMouse;
|
bool gamepadMouse;
|
||||||
bool detectNetworkBlocking;
|
bool detectNetworkBlocking;
|
||||||
@ -209,6 +211,7 @@ signals:
|
|||||||
void windowModeChanged();
|
void windowModeChanged();
|
||||||
void framePacingChanged();
|
void framePacingChanged();
|
||||||
void connectionWarningsChanged();
|
void connectionWarningsChanged();
|
||||||
|
void configurationWarningsChanged();
|
||||||
void richPresenceChanged();
|
void richPresenceChanged();
|
||||||
void gamepadMouseChanged();
|
void gamepadMouseChanged();
|
||||||
void detectNetworkBlockingChanged();
|
void detectNetworkBlockingChanged();
|
||||||
|
@ -929,6 +929,7 @@ bool Session::initialize()
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (m_Preferences->configurationWarnings) {
|
||||||
// Display launch warnings in Qt only after destroying SDL's window.
|
// Display launch warnings in Qt only after destroying SDL's window.
|
||||||
// This avoids conflicts between the windows on display subsystems
|
// This avoids conflicts between the windows on display subsystems
|
||||||
// such as KMSDRM that only support a single window.
|
// such as KMSDRM that only support a single window.
|
||||||
@ -950,6 +951,7 @@ bool Session::initialize()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user