2022-04-23 14:32:36 +02:00
|
|
|
import QtQuick
|
|
|
|
import QtQuick.Controls
|
|
|
|
import QtQuick.Controls.Material
|
|
|
|
import Qt5Compat.GraphicalEffects
|
|
|
|
import QtQuick.Layouts
|
|
|
|
import Settings
|
|
|
|
import ScreenPlay
|
|
|
|
|
|
|
|
Item {
|
|
|
|
id: root
|
|
|
|
|
|
|
|
property Item modalSource
|
|
|
|
|
|
|
|
Component.onCompleted: {
|
2022-04-30 12:07:54 +02:00
|
|
|
if (App.settings.steamVersion) {
|
2022-04-23 14:32:36 +02:00
|
|
|
workshopLoader.setSource(
|
2022-04-30 12:07:54 +02:00
|
|
|
"qrc:/qml/ScreenPlayApp/qml/Workshop/SteamWorkshop.qml", {
|
2022-04-23 14:32:36 +02:00
|
|
|
"modalSource": modalSource
|
|
|
|
})
|
|
|
|
} else {
|
2022-04-30 12:07:54 +02:00
|
|
|
workshopLoader.setSource("qrc:/qml/ScreenPlayApp/qml/Workshop/Forum.qml")
|
2022-04-23 14:32:36 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Loader {
|
|
|
|
id: workshopLoader
|
|
|
|
asynchronous: true
|
|
|
|
anchors.fill: parent
|
|
|
|
}
|
|
|
|
}
|