mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-11-22 02:32: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");
|
||||
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user