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:
real-yfprojects 2023-10-20 19:40:31 +02:00
parent f71c8f8675
commit cff9e3a26d
No known key found for this signature in database
GPG Key ID: 00F630DFDEE25747
1 changed files with 2 additions and 0 deletions

View File

@ -125,6 +125,7 @@ class RepoWindow(AddRepoBase, AddRepoUI):
repo_name=self.repoName.text(),
password=self.passwordInput.get_password(),
extra_borg_arguments=self.extraBorgArgumentsLineEdit.text(),
is_remote_repo=self.is_remote_repo,
)
return out
@ -139,6 +140,7 @@ class RepoWindow(AddRepoBase, AddRepoUI):
# do not set confirmLineEdit, let user confirm password
window._set_status("Autofilled password from previous window.")
window.extraBorgArgumentsLineEdit.setText(values['extra_borg_arguments'])
window.is_remote_repo = values['is_remote_repo']
return window