mirror of https://github.com/borgbase/vorta
Pass is_remote_repo attribute between the dialog.
Now when the `AddRepoWindow` with the values from `ExistingRepoWindow` the `is_remote_repo` attribute will be restored, preventing an error message when trying to add the repository. * src/vorta/views/repo_add_dialog.py
This commit is contained in:
parent
f71c8f8675
commit
cff9e3a26d
|
@ -125,6 +125,7 @@ class RepoWindow(AddRepoBase, AddRepoUI):
|
||||||
repo_name=self.repoName.text(),
|
repo_name=self.repoName.text(),
|
||||||
password=self.passwordInput.get_password(),
|
password=self.passwordInput.get_password(),
|
||||||
extra_borg_arguments=self.extraBorgArgumentsLineEdit.text(),
|
extra_borg_arguments=self.extraBorgArgumentsLineEdit.text(),
|
||||||
|
is_remote_repo=self.is_remote_repo,
|
||||||
)
|
)
|
||||||
return out
|
return out
|
||||||
|
|
||||||
|
@ -139,6 +140,7 @@ class RepoWindow(AddRepoBase, AddRepoUI):
|
||||||
# do not set confirmLineEdit, let user confirm password
|
# do not set confirmLineEdit, let user confirm password
|
||||||
window._set_status("Autofilled password from previous window.")
|
window._set_status("Autofilled password from previous window.")
|
||||||
window.extraBorgArgumentsLineEdit.setText(values['extra_borg_arguments'])
|
window.extraBorgArgumentsLineEdit.setText(values['extra_borg_arguments'])
|
||||||
|
window.is_remote_repo = values['is_remote_repo']
|
||||||
return window
|
return window
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue