public void ToggleEnable(bool enabled) { _config.enabled = enabled; SaveConfig(_config); EnableStatusChanged?.Invoke(this, new EventArgs()); }
public async Task ToggleEnable(bool enabled) { _config.enabled = enabled; await SaveConfig(_config); EnableStatusChanged?.Invoke(this, new EventArgs()); }