Skip to content

Commit

Permalink
Config: apply renamed actions. Re nvaccess#7598.
Browse files Browse the repository at this point in the history
  • Loading branch information
josephsl committed May 8, 2018
1 parent f0b8e8e commit 17f48c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ def save(self):
"""Save all modified profiles and the base configuration to disk.
"""
# #7598: give others a chance to either save settings early or terminate tasks.
configPreSave.notify()
preConfigSave.notify()
if not self._shouldWriteProfile:
log.info("Not writing profile, either --secure or --launcher args present")
return
Expand All @@ -518,7 +518,7 @@ def save(self):
log.warning("Error saving configuration; probably read only file system")
log.debugWarning("", exc_info=True)
raise e
configPostSave.notify()
postConfigSave.notify()

def reset(self, factoryDefaults=False):
"""Reset the configuration to saved settings or factory defaults.
Expand All @@ -530,7 +530,7 @@ def reset(self, factoryDefaults=False):
# Signal that we're initialising.
self.rootSection = None
self._initBaseConf(factoryDefaults=factoryDefaults)
configReset.notify(factoryDefaults=factoryDefaults)
postConfigReset.notify(factoryDefaults=factoryDefaults)

def createProfile(self, name):
"""Create a profile.
Expand Down

0 comments on commit 17f48c0

Please sign in to comment.