save highlighters

remove user config (not needed)
This commit is contained in:
2021-10-31 18:05:10 +01:00
parent 3d80640609
commit 9fb8a45ef7
5 changed files with 18 additions and 45 deletions

View File

@@ -12,10 +12,6 @@ class SettingsStore():
def __init__(self):
pass
@staticmethod
def _config_file() -> str:
return join(Path.home(), ".ravenlog", "settings.ini")
@staticmethod
def _session_file() -> str:
if sys.platform == 'win32' or sys.platform == 'cygwin':
@@ -25,17 +21,8 @@ class SettingsStore():
@staticmethod
def load() -> Settings:
config = SettingsStore._load_config()
session = SettingsStore._load_session()
return Settings(config, session)
@staticmethod
def _load_config() -> ConfigParser:
config_file = SettingsStore._config_file()
config = ConfigParser()
config.read(config_file)
return config
return Settings(session)
@staticmethod
def _load_session() -> ConfigParser: