public void Execute(object parameter) { if (_settingsChanged.HaveChanged()) { _currentSettingsProvider.StoreCurrentSettings(); _settingsManager.SaveCurrentSettings(); } }
public void Execute(object parameter) { if (!_settingsChanged.HaveChanged()) { _logger.Trace("Settings have not changed, skip saving."); return; } _logger.Trace("Storing and saving current settings"); _currentSettingsProvider.StoreCurrentSettings(); _settingsManager.SaveCurrentSettings(); }