mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-17 06:01:12 +00:00
Use QRC URLs for the initialView value to fix loading from the QRC blob
This commit is contained in:
+3
-3
@@ -370,11 +370,11 @@ int main(int argc, char *argv[])
|
|||||||
GlobalCommandLineParser parser;
|
GlobalCommandLineParser parser;
|
||||||
switch (parser.parse(app.arguments())) {
|
switch (parser.parse(app.arguments())) {
|
||||||
case GlobalCommandLineParser::NormalStartRequested:
|
case GlobalCommandLineParser::NormalStartRequested:
|
||||||
initialView = "PcView.qml";
|
initialView = "qrc:/gui/PcView.qml";
|
||||||
break;
|
break;
|
||||||
case GlobalCommandLineParser::StreamRequested:
|
case GlobalCommandLineParser::StreamRequested:
|
||||||
{
|
{
|
||||||
initialView = "CliStartStreamSegue.qml";
|
initialView = "qrc:/gui/CliStartStreamSegue.qml";
|
||||||
StreamingPreferences* preferences = new StreamingPreferences(&app);
|
StreamingPreferences* preferences = new StreamingPreferences(&app);
|
||||||
StreamCommandLineParser streamParser;
|
StreamCommandLineParser streamParser;
|
||||||
streamParser.parse(app.arguments(), preferences);
|
streamParser.parse(app.arguments(), preferences);
|
||||||
@@ -386,7 +386,7 @@ int main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
case GlobalCommandLineParser::QuitRequested:
|
case GlobalCommandLineParser::QuitRequested:
|
||||||
{
|
{
|
||||||
initialView = "CliQuitStreamSegue.qml";
|
initialView = "qrc:/gui/CliQuitStreamSegue.qml";
|
||||||
QuitCommandLineParser quitParser;
|
QuitCommandLineParser quitParser;
|
||||||
quitParser.parse(app.arguments());
|
quitParser.parse(app.arguments());
|
||||||
auto launcher = new CliQuitStream::Launcher(quitParser.getHost(), &app);
|
auto launcher = new CliQuitStream::Launcher(quitParser.getHost(), &app);
|
||||||
|
|||||||
Reference in New Issue
Block a user