feat: add option to change shortcuts, set return modes

This commit is contained in:
WorldTeacher
2024-09-30 11:21:26 +02:00
parent 114d6fb1ca
commit 4164da4f55
7 changed files with 303 additions and 191 deletions

View File

@@ -54,6 +54,30 @@ class Config:
if self._config is None:
raise RuntimeError("Configuration not loaded")
self._config.catalogue = value
@property
def shortcuts(self)->omegaconf.DictConfig:
if self._config is None:
raise RuntimeError("Configuration not loaded")
return self._config.shortcuts
@shortcuts.setter
def shortcuts(self, value: omegaconf.DictConfig):
if self._config is None:
raise RuntimeError("Configuration not loaded")
self._config.shortcuts = value
@property
def advanced_refresh(self)->omegaconf.DictConfig:
if self._config is None:
raise RuntimeError("Configuration not loaded")
return self._config.advanced_refresh
@advanced_refresh.setter
def advanced_refresh(self, value: omegaconf.DictConfig):
if self._config is None:
raise RuntimeError("Configuration not loaded")
self._config.advanced_refresh = value
@property
def database(self)->omegaconf.DictConfig:
if self._config is None: