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:
@ -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)
|
||||
}
|
||||
|
@ -89,6 +89,7 @@ Page {
|
||||
textSuccess: i18n.tr("Password store sucessfully imported !")
|
||||
onDialogClosed: {
|
||||
pageStack.pop()
|
||||
pageStack.pop()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user