change tasks, config

This commit is contained in:
2025-01-10 09:35:43 +01:00
parent 0d7dc28876
commit 60fa34c235
2 changed files with 10 additions and 22 deletions

11
.vscode/tasks.json vendored
View File

@@ -9,6 +9,11 @@
"Build LibrarySystem (Debug)"
],
"command": "cmd",
"args": [
"/c",
"echo",
"Build Complete"
],
"group": {
"kind": "build",
"isDefault": true
@@ -48,7 +53,8 @@
"presentation": {
"reveal": "always",
"panel": "new",
"focus": false
"focus": false,
"close": true
},
// "dependsOn": "Compress dist Folder Debug",
"problemMatcher": "$python"
@@ -80,7 +86,8 @@
"presentation": {
"reveal": "always",
"panel": "new",
"focus": false
"focus": false,
"close": true
},
"problemMatcher": "$python"
},

View File

@@ -107,26 +107,7 @@ class Config:
if self._config is None:
raise RuntimeError("Configuration not loaded")
self._config.debug = value
@property
def log_debug(self)->bool:
if self._config is None:
raise RuntimeError("Configuration not loaded")
return self._config.log_debug
@log_debug.setter
def log_debug(self, value: bool):
if self._config is None:
raise RuntimeError("Configuration not loaded")
self._config.log_debug = value
@property
def ic_logging(self)->bool:
if self._config is None:
raise RuntimeError("Configuration not loaded")
return self._config.ic_logging
@ic_logging.setter
def ic_logging(self, value:bool):
if self._config is None:
raise RuntimeError("Configuration not loaded")
self._config.ic_logging = value
def save(self):
if self._config is None:
raise RuntimeError("Configuration not loaded")