COnfiguration and systray
This commit is contained in:
@@ -245,3 +245,21 @@ class ConfigLoader(QObject):
|
||||
self.__encrypt_key = toml.dumps(self.getConfig())
|
||||
self.saveRecoveryKey(filename, password)
|
||||
|
||||
@Slot(dict)
|
||||
def saveCompanyInfo(self, company = None):
|
||||
self.__config.update(company)
|
||||
self.__saveConfig()
|
||||
|
||||
@Slot(result = dict)
|
||||
def getCompanyInfo():
|
||||
return self.__config['company']
|
||||
|
||||
@Slot(dict)
|
||||
def saveMiscConf(self, misc_conf = None):
|
||||
self.__config.update(misc_conf)
|
||||
self.__saveConfig()
|
||||
|
||||
@Slot(result = bool)
|
||||
def systray(self):
|
||||
return self.__config['misc']['SYSTRAY']
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ class ObjectModel(QAbstractTableModel):
|
||||
|
||||
print(new_objcontact)
|
||||
|
||||
self.__object_dao.addObject(new_object, new_objcontact, self.__key)
|
||||
#self.__object_dao.addObject(new_object, new_objcontact, self.__key)
|
||||
|
||||
# @Slot(str)
|
||||
# def viewCriterion(self, criterion, processed = False, fired = False):
|
||||
|
||||
Reference in New Issue
Block a user