2021-02-16 17:01:17 +00:00
|
|
|
import QtQuick 2.12
|
2021-03-04 16:26:51 +00:00
|
|
|
import QtQuick.Controls 2.12
|
|
|
|
import QtGraphicalEffects 1.12
|
2021-02-16 17:01:17 +00:00
|
|
|
import QtQuick.Window 2.12
|
|
|
|
|
2021-03-04 16:26:51 +00:00
|
|
|
import nl.netsoj.chris.Jellyfin 1.0
|
|
|
|
|
2021-02-16 17:01:17 +00:00
|
|
|
import "components"
|
2021-03-04 16:26:51 +00:00
|
|
|
import "../SailfinStyle"
|
2021-02-16 17:01:17 +00:00
|
|
|
|
2021-03-04 16:26:51 +00:00
|
|
|
ApplicationWindow {
|
2021-02-16 17:01:17 +00:00
|
|
|
width: 600
|
|
|
|
height: 600
|
|
|
|
visible: true
|
|
|
|
|
2021-03-04 16:26:51 +00:00
|
|
|
background: Background {
|
|
|
|
anchors.fill: parent
|
|
|
|
}
|
|
|
|
|
|
|
|
StackView {
|
|
|
|
id: pageStack
|
2021-02-16 17:01:17 +00:00
|
|
|
anchors.fill: parent
|
|
|
|
}
|
2021-03-04 16:26:51 +00:00
|
|
|
|
|
|
|
Connections {
|
|
|
|
target: ApiClient
|
|
|
|
onSetupRequired: pageStack.push(Qt.resolvedUrl("pages/setup/ServerSelectPage.qml"));
|
|
|
|
}
|
|
|
|
|
|
|
|
Component.onCompleted: {
|
|
|
|
ApiClient.restoreSavedSession()
|
|
|
|
}
|
2021-02-16 17:01:17 +00:00
|
|
|
}
|