[Add] model logger func

This commit is contained in:
misyaguziya
2023-09-02 06:02:29 +09:00
parent 3affcc1ee6
commit 3c172db7d1
3 changed files with 40 additions and 0 deletions

View File

@@ -442,6 +442,16 @@ class Config:
self._SELECTED_TAB_TARGET_LANGUAGES = value
saveJson(self.PATH_CONFIG, inspect.currentframe().f_code.co_name, value)
@property
def ENABLE_LOGGER(self):
return self._ENABLE_LOGGER
@ENABLE_LOGGER.setter
def ENABLE_LOGGER(self, value):
if type(value) is bool:
self._ENABLE_LOGGER = value
saveJson(self.PATH_CONFIG, inspect.currentframe().f_code.co_name, value)
# Config Window
@property
def IS_CONFIG_WINDOW_COMPACT_MODE(self):
@@ -515,6 +525,7 @@ class Config:
"2":"English\n(United States)",
"3":"English\n(United States)",
}
self._ENABLE_LOGGER = False
# Config Window
self._IS_CONFIG_WINDOW_COMPACT_MODE = False