2023-07-30 08:49:34 -04:00
|
|
|
// SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>
|
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
2023-09-16 18:15:11 -04:00
|
|
|
import QtQuick
|
|
|
|
import QtQuick.Layouts
|
|
|
|
|
|
|
|
import org.kde.kirigami as Kirigami
|
|
|
|
import org.kde.kirigamiaddons.labs.mobileform as MobileForm
|
|
|
|
|
|
|
|
import zone.xiv.astra
|
2023-07-30 08:49:34 -04:00
|
|
|
|
|
|
|
Kirigami.Page {
|
|
|
|
property var gameInstaller
|
|
|
|
|
|
|
|
title: i18n("Game Installation")
|
|
|
|
|
|
|
|
Kirigami.LoadingPlaceholder {
|
|
|
|
anchors.centerIn: parent
|
|
|
|
|
|
|
|
text: i18n("Installing...")
|
|
|
|
}
|
|
|
|
|
2023-08-18 21:59:42 -04:00
|
|
|
Kirigami.PromptDialog {
|
|
|
|
id: errorDialog
|
|
|
|
title: i18n("Install error")
|
|
|
|
|
|
|
|
showCloseButton: false
|
|
|
|
standardButtons: Kirigami.Dialog.Ok
|
|
|
|
|
|
|
|
onAccepted: applicationWindow().pageStack.layers.pop()
|
|
|
|
onRejected: applicationWindow().pageStack.layers.pop()
|
|
|
|
}
|
|
|
|
|
2023-07-30 08:49:34 -04:00
|
|
|
Component.onCompleted: gameInstaller.installGame()
|
|
|
|
|
|
|
|
Connections {
|
|
|
|
target: gameInstaller
|
|
|
|
|
|
|
|
function onInstallFinished() {
|
|
|
|
applicationWindow().checkSetup()
|
|
|
|
}
|
2023-08-18 21:59:42 -04:00
|
|
|
|
|
|
|
function onError(message) {
|
|
|
|
errorDialog.subtitle = message
|
|
|
|
errorDialog.open()
|
|
|
|
}
|
2023-07-30 08:49:34 -04:00
|
|
|
}
|
|
|
|
}
|