mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-11-22 10:42:29 +01:00
Change window title
This commit is contained in:
parent
2bb8ab17cf
commit
c70157fe01
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user