Skip to content

Commit

Permalink
Fix MainConfig refresh in SeaBASSHeaderWindow.configUpdateButtonPressed
Browse files Browse the repository at this point in the history
  • Loading branch information
oceancolorcoder committed Aug 30, 2024
1 parent 1593074 commit 8ed6754
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Source/SeaBASSHeaderWindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,10 @@ def configUpdateButtonPressed(self, caller):
else:
NegativeFilt = "Off"

MainConfig.loadConfig('main.config','version')
if os.environ["HYPERINSPACE_CMD"]:
MainConfig.loadConfig('cmdline_main.config','version')
else:
MainConfig.loadConfig('main.config','version')
SeaBASSHeader.settings["comments"] =\
f'! HyperInSPACE vers = {MainConfig.settings["version"]}\n'+\
f'! HyperInSPACE Config = {ConfigFile.filename}\n'+\
Expand Down

0 comments on commit 8ed6754

Please sign in to comment.