void dotaChanged() { // dota running changed OnDotaChanged?.Invoke(this, new DotaChangedEventArgs() { IsRunning = currentDotaStatus, }); }
private void _worker_OnDotaChanged(object?sender, DotaChangedEventArgs e) { DotaRunning = e.IsRunning; OnDotaChanged?.Invoke(this, e); if (!e.IsRunning) { // user just closed dota // TODO: if this is the "primary" steam account, should we overwrite the prefered keybinds? } else { // user just launched dota // probably not gonna do anything WriteKeybinds(); } }