1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-21 18:22:29 +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");
const isSteamVersion = App.globalVariables.isSteamVersion();
let platform = "";
if (isSteamVersion)
if (isSteamVersion) {
platform = qsTr("Steam");
const isProVersion = App.globalVariables.isProVersion();
} else {
platform = qsTr("Standalone");
}
let featureLevel = "";
if (isProVersion)
if (App.globalVariables.isProVersion()) {
featureLevel = qsTr("Pro");
const isUltraVersion = App.globalVariables.isUltraVersion();
if (isUltraVersion)
} else if (App.globalVariables.isUltraVersion()) {
featureLevel = qsTr("Ultra");
root.title = "ScreenPlay - v" + App.version() + " " + featureLevel + " " + platform;
} else {
featureLevel = qsTr("Standard");
}
root.title = "ScreenPlay v" + App.version() + " " + featureLevel + " " + platform;
}
Connections {