Recovery in Settings and start with OfferTable

This commit is contained in:
2025-03-07 11:59:51 +01:00
parent e81407b43d
commit b414a050be
13 changed files with 333 additions and 100 deletions

View File

@@ -7,11 +7,12 @@ import QtCore
import "../js/qmldict.js" as Qmldict
Item
{
property string recpass: ""
property bool adminAvailable: true
property alias recoverEnc: recoveryPaswordDialog
id: firstStartItem
anchors.fill: parent
@@ -72,7 +73,6 @@ Item
MessageDialog
{
id: recoveryDialog
text: qsTr("Diesen Wiederherstellungscode musst du sicher aufbewahren!\nMöchtest du das jetzt machen?")
title: qsTr("Wiederherstellen")
buttons: MessageDialog.Yes | MessageDialog.No
@@ -156,6 +156,12 @@ Item
}
}
Loader
{
id: utilityDialogs
source: "UtilityDialogs.qml"
}
Component.onCompleted:
{
config.dbConnectionError.connect(onDbConnectionError)
@@ -163,15 +169,10 @@ Item
config.backupEncryptionKey.connect(onBackupEncryptionKey)
}
function gotoLogin()
{
appLoader.source= "LoginScreen.qml"
topBar.visible = true
}
function onBackupEncryptionKey()
{
recoveryDialog.open()
utilityDialogs.item.recoveryDialog.open()
}
function onDbConnectionError(msg, success)
@@ -192,5 +193,4 @@ Item
firstStart.push("AdminUserConfig.qml")
}
}
}