mirror of
https://github.com/QRouland/UTPass.git
synced 2025-07-05 03:22:27 +00:00
Some cleanup
This commit is contained in:
@ -19,10 +19,10 @@ MainView {
|
||||
//TODO use parameters to impove passphrase dialog
|
||||
var passphraseDialog = PopupUtils.open(Qt.resolvedUrl("dialogs/PassphraseDialog.qml"));
|
||||
passphraseDialog.activateFocus();
|
||||
var validated = function (passphrase) {
|
||||
var validated = function validated(passphrase) {
|
||||
responsePassphraseDialog(false, passphrase);
|
||||
};
|
||||
var canceled = function () {
|
||||
var canceled = function canceled() {
|
||||
responsePassphraseDialog(true, "");
|
||||
};
|
||||
passphraseDialog.validated.connect(validated);
|
||||
|
@ -69,12 +69,10 @@ Page {
|
||||
text: i18n.tr('Clone')
|
||||
onClicked: {
|
||||
var ret = false;
|
||||
if(repoPasswordInput.text === "") {
|
||||
if (repoPasswordInput.text === "")
|
||||
ret = Git.clone_http(repoUrlInput.text, Pass.password_store);
|
||||
} else {
|
||||
else
|
||||
ret = Git.clone_http_pass(repoUrlInput.text, Pass.password_store, repoPasswordInput.text);
|
||||
}
|
||||
|
||||
if (ret)
|
||||
PopupUtils.open(dialogImportGitCloneSuccess);
|
||||
else
|
||||
|
Reference in New Issue
Block a user