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) {
|
2023-02-02 15:25:26 +01:00
|
|
|
workshopLoader.setSource("qrc:/qml/ScreenPlayApp/qml/Workshop/SteamWorkshop.qml", {
|
|
|
|
"modalSource": modalSource
|
|
|
|
});
|
2022-04-23 14:32:36 +02:00
|
|
|
} else {
|
2023-02-02 15:25:26 +01: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
|
|
|
|
}
|
|
|
|
}
|