1
0
Fork 0
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:
shivansh02 2024-03-13 20:21:07 +05:30
parent 02a2930069
commit 6af951f097

View file

@ -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(),