From 6afdbbccb2a5c59b70bf9cbb9cfe241394fdf708 Mon Sep 17 00:00:00 2001 From: ganeshrevadi Date: Sat, 11 Mar 2023 14:24:19 +0530 Subject: [PATCH] Kwallet --- src/vorta/keyring/kwallet.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/vorta/keyring/kwallet.py b/src/vorta/keyring/kwallet.py index 32402160a..2146cc678 100644 --- a/src/vorta/keyring/kwallet.py +++ b/src/vorta/keyring/kwallet.py @@ -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)