Exemple #1
0
        public void ToggleEnable(bool enabled)
        {
            _config.enabled = enabled;
            SaveConfig(_config);

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

            EnableStatusChanged?.Invoke(this, new EventArgs());
        }