1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-25 20:22:39 +01:00

Change window title

This commit is contained in:
Elias Steurer 2024-11-08 09:38:02 +01:00
parent 2bb8ab17cf
commit c70157fe01

View File

@ -28,16 +28,20 @@ ApplicationWindow {
baseLoader.setSource("qrc:/qml/ScreenPlayApp/qml/MainApp.qml"); baseLoader.setSource("qrc:/qml/ScreenPlayApp/qml/MainApp.qml");
const isSteamVersion = App.globalVariables.isSteamVersion(); const isSteamVersion = App.globalVariables.isSteamVersion();
let platform = ""; let platform = "";
if (isSteamVersion) if (isSteamVersion) {
platform = qsTr("Steam"); platform = qsTr("Steam");
const isProVersion = App.globalVariables.isProVersion(); } else {
platform = qsTr("Standalone");
}
let featureLevel = ""; let featureLevel = "";
if (isProVersion) if (App.globalVariables.isProVersion()) {
featureLevel = qsTr("Pro"); featureLevel = qsTr("Pro");
const isUltraVersion = App.globalVariables.isUltraVersion(); } else if (App.globalVariables.isUltraVersion()) {
if (isUltraVersion)
featureLevel = qsTr("Ultra"); featureLevel = qsTr("Ultra");
root.title = "ScreenPlay - v" + App.version() + " " + featureLevel + " " + platform; } else {
featureLevel = qsTr("Standard");
}
root.title = "ScreenPlay v" + App.version() + " " + featureLevel + " " + platform;
} }
Connections { Connections {