save highlighters
remove user config (not needed)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user