nochmal
This commit is contained in:
@@ -34,6 +34,7 @@ class ConfigLoader(QObject):
|
||||
# print(f"In {__file__} file, __init__()")
|
||||
self.config_dir = user_config_dir() + '/pyqcrm'
|
||||
config_dir = Path(self.config_dir)
|
||||
|
||||
if config_dir.exists():
|
||||
self.__configLoad()
|
||||
if self.__config:
|
||||
@@ -41,6 +42,7 @@ class ConfigLoader(QObject):
|
||||
else:
|
||||
config_dir.mkdir(0o750, True, True)
|
||||
|
||||
|
||||
@Slot(dict, result= bool)
|
||||
def setConfig(self, app_config):
|
||||
# print(f"In {__file__} file, setConfig()")
|
||||
@@ -212,3 +214,7 @@ class ConfigLoader(QObject):
|
||||
self.__config['pyqcrm']['ENCRYPTION_KEY'] = enc_key
|
||||
self.__saveConfig()
|
||||
|
||||
def getKey(self):
|
||||
|
||||
return self.__config['pyqcrm']['ENCRYPTION_KEY']
|
||||
|
||||
|
||||
Reference in New Issue
Block a user