1
0
mirror of https://github.com/QRouland/UTPass.git synced 2025-06-24 22:42:28 +00:00

Use tmp dir during clone to keep orignal passstore in case of error

This commit is contained in:
2025-01-10 14:41:04 +01:00
parent 80a5055b78
commit 3aa99791b8
8 changed files with 45 additions and 18 deletions

View File

@ -51,7 +51,7 @@ Page {
onClicked: {
var ret = Git.clone(textFieldInput.text, Pass.password_store)
if(ret) {
pageStack.pop()
PopupUtils.open(dialogImportGitCloneSuccess)
} else {
PopupUtils.open(importGitCloneError, importGitClonePage)
}
@ -79,6 +79,17 @@ Page {
}
}
Component {
id: dialogImportGitCloneSuccess
SuccessDialog {
textSuccess: i18n.tr("Password store sucessfully imported !")
onDialogClosed: {
pageStack.pop()
pageStack.pop()
}
}
}
Component.onCompleted: {
PopupUtils.open(importGitCloneValidation, importGitClonePage)
}

View File

@ -89,6 +89,7 @@ Page {
textSuccess: i18n.tr("Password store sucessfully imported !")
onDialogClosed: {
pageStack.pop()
pageStack.pop()
}
}
}