1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-22 04:37:46 +00:00
astra/launcher/ui/Components/FormFileDelegate.qml
Joshua Goins 67dcd90058 Overhaul initial setup flow, again
This improves the flow drastically, first by porting it from MobileForm
to FormCard. Next, it fixes some of the annoying bugs such as the
profile not switching properly when adding a new profile. Selecting an
existing game path is now possible, and it's less likely you can enter
in invalid account credentials. The overall look and behavior of some
of the pages is improved.
2023-10-08 20:01:17 -04:00

24 lines
No EOL
489 B
QML

// SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>
// SPDX-License-Identifier: GPL-3.0-or-later
import QtCore
import QtQuick.Dialogs
import org.kde.kirigamiaddons.formcard as FormCard
FormCard.FormButtonDelegate {
id: control
property string file
icon.name: "document-open"
description: file
onClicked: dialog.open()
FileDialog {
id: dialog
currentFolder: StandardPaths.standardLocations(StandardPaths.HomeLocation)[0]
}
}