Add constructor for keyring attribute

_store_secure was used, so it should be created on construction
This commit is contained in:
Jaime van Kessel 2021-04-07 11:30:08 +02:00
parent 1e5d7623cb
commit 0d38035944
No known key found for this signature in database
GPG key ID: 3710727397403C91

View file

@ -22,7 +22,11 @@ if Platform.isWindows() and hasattr(sys, "frozen"):
# Even if errors happen, we don't want this stored locally:
DONT_EVER_STORE_LOCALLY = ["refresh_token"]
class KeyringAttribute:
def __init__(self) -> None:
self._store_secure = True
"""
Descriptor for attributes that need to be stored in the keyring. With Fallback behaviour to the preference cfg file
"""