Skip to content

Commit

Permalink
compare: Track changes made in the preferences tool
Browse files Browse the repository at this point in the history
We now check the current config file before running the comparison
engine as the user may have changed it.
  • Loading branch information
EduardDopler committed Nov 30, 2015
1 parent f66d179 commit bea81f0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions nemo-compare/src/utils.py
Expand Up @@ -31,8 +31,6 @@
signal.signal(signal.SIGINT, signal.SIG_DFL)


APP = "nemo-compare"

# configuration settings
CONFIG_FORMAT = 2
CONFIG_FILE_USER = os.path.join(BaseDirectory.xdg_config_home,
Expand Down Expand Up @@ -127,11 +125,13 @@ def load(self):
return self.reset()

def update_engines(self):
"""TODO."""
if not self.config:
self.load()
"""Remove all engines from config which aren't installed anymore.
Force reading the current config file before as the user may
have changed it.
"""
self.load()

# remove all engines from config which aren't installed anymore
installed = get_installed_engines()
config_engines = self.config[SECTION_ENGINES]
changed = False
Expand Down

0 comments on commit bea81f0

Please sign in to comment.