mirror of
https://github.com/borgbase/vorta
synced 2024-12-22 07:43:09 +00:00
clear table if adding repo succeeds
This commit is contained in:
parent
02a2930069
commit
6af951f097
1 changed files with 3 additions and 0 deletions
|
@ -94,6 +94,9 @@ def run_result(self, result):
|
|||
if result['returncode'] == 0:
|
||||
self.added_repo.emit(result)
|
||||
self.accept()
|
||||
# clear FailedRepoModel if adding repo succeeds
|
||||
FailedRepoModel.delete().execute()
|
||||
|
||||
else:
|
||||
self.save_failed_repo(
|
||||
self.repoURL.text(),
|
||||
|
|
Loading…
Reference in a new issue