update: encryption/decryption logic, backup encryption on save and decryption on restore

This commit is contained in:
MrMirDan
2025-12-18 12:25:55 +02:00
parent a7ae0bc65e
commit ba580891cd
12 changed files with 308 additions and 215 deletions
+15 -1
View File
@@ -140,10 +140,24 @@ PageType {
var filePath = SystemController.getFileName(qsTr("Open backup file"),
qsTr("Backup files (*.backup)"))
if (filePath !== "") {
restoreBackup(filePath)
passwordDrawer.fileName = filePath
SystemController.isFileEncrypted(filePath) ? passwordDrawer.openTriggered() : passwordDrawer.securedFunc()
}
}
}
PasswordDrawer {
id: passwordDrawer
parent: root
anchors.fill: parent
expandedHeight: root.height * 0.45
securedFunc: function() {
restoreBackup(fileName)
}
}
}
}