Skip to content

Commit

Permalink
Kwallet
Browse files Browse the repository at this point in the history
  • Loading branch information
ganeshrevadi committed Mar 11, 2023
1 parent 527797c commit 6afdbbc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/vorta/keyring/kwallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ def get_password(self, service, repo_url):
logger.debug(f"Retrieved password for repo {repo_url}")
return password

def remove_password(self, service, repo_url):
if self.is_unlocked and self.get_result("hasEntry", args=[self.handle, self.folder_name, repo_url, service]):
self.get_result("removeEntry", args=[self.handle, self.folder_name, repo_url, service])
logger.debug(f"Removed password for repo {repo_url}")

def get_result(self, method, args=[]):
if args:
result = self.iface.callWithArgumentList(QtDBus.QDBus.AutoDetect, method, args)
Expand Down

0 comments on commit 6afdbbc

Please sign in to comment.