2023-09-17 19:20:41 -04:00
|
|
|
// SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>
|
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
|
|
|
import QtQuick
|
|
|
|
import QtQuick.Controls as QQC2
|
|
|
|
|
|
|
|
import org.kde.kirigami as Kirigami
|
|
|
|
|
|
|
|
import zone.xiv.astra
|
|
|
|
|
|
|
|
Kirigami.Page {
|
|
|
|
id: root
|
|
|
|
|
|
|
|
title: i18n("Auto Login")
|
|
|
|
|
|
|
|
Kirigami.LoadingPlaceholder {
|
|
|
|
id: placeholderMessage
|
|
|
|
|
|
|
|
anchors.centerIn: parent
|
|
|
|
|
|
|
|
text: i18n("Logging in...")
|
|
|
|
|
|
|
|
helpfulAction: Kirigami.Action {
|
|
|
|
icon.name: "Cancel"
|
|
|
|
text: "Cancel"
|
|
|
|
enabled: autoLoginTimer.running
|
|
|
|
onTriggered: {
|
|
|
|
autoLoginTimer.stop();
|
|
|
|
applicationWindow().cancelAutoLogin();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Timer {
|
|
|
|
id: autoLoginTimer
|
|
|
|
|
|
|
|
interval: 5000
|
|
|
|
running: true
|
|
|
|
onTriggered: {
|
2023-09-17 19:30:22 -04:00
|
|
|
autoLoginTimer.stop();
|
2023-09-17 19:20:41 -04:00
|
|
|
LauncherCore.autoLogin(LauncherCore.autoLoginProfile);
|
|
|
|
pageStack.layers.push(Qt.createComponent("zone.xiv.astra", "StatusPage"));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|