Skip to content

Commit 39f2557

Browse files
committed
load config only in main instance
Only load the config in the main GTK instance, and not the CLI instances. This can be changed again later, but it is not needed right now, so we skip it.
1 parent 8832cce commit 39f2557

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

safeeyes/safeeyes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,6 @@ def do_handle_local_options(self, options):
138138
utility.initialize_platform()
139139
utility.cleanup_old_user_stylesheet()
140140

141-
self.config = Config.load()
142-
143141
if options.contains("version"):
144142
print(f"Safe Eyes {SAFE_EYES_VERSION}")
145143
return 0 # exit
@@ -230,6 +228,8 @@ def do_startup(self) -> None:
230228

231229
logging.info("Starting up Application")
232230

231+
self.config = Config.load()
232+
233233
# Initialize the Safe Eyes Context
234234
if self.config.get("persist_state"):
235235
session = utility.open_session()

0 commit comments

Comments
 (0)