Fix check for is locked

This commit is contained in:
Antonio J. Delgado 2024-11-21 10:03:45 +02:00
parent 70731a7011
commit 7475c40308

View file

@ -216,7 +216,7 @@ class NextcloudHandler:
def _get_encryption_pass_from_keyring(self): def _get_encryption_pass_from_keyring(self):
connection = secretstorage.dbus_init() connection = secretstorage.dbus_init()
collection = secretstorage.get_default_collection(connection) collection = secretstorage.get_default_collection(connection)
if collection.is_locked: if collection.is_locked():
collection.unlock() collection.unlock()
for item in collection.get_all_items(): for item in collection.get_all_items():
if item.get_label() == 'nc_password_client': if item.get_label() == 'nc_password_client':