private static void ShowWelcomeIfAppropriate() { if (!s_settings.HasKey(FirstRunKey)) { s_settings.Set(FirstRunKey, true); ProtocolLaunchEarTrumpet("welcome"); } }
public void ResetTrayIconIdentity() => _settings.Set(s_trayIconIdKey, Guid.Empty);
protected void SaveSettings(string key) { _settings.Set(key, _commandControlMappings); }
public void Set <T>(string key, T value) { _globalBag.Set($"{Namespace}{key}", value); SettingChanged?.Invoke(this, key); }