private void CompleteStartup() { AddonManager.Load(); Exit += (_, __) => AddonManager.Shutdown(); #if DEBUG DebugHelpers.Add(); #endif _mixerWindow = new WindowHolder(CreateMixerExperience); _settingsWindow = new WindowHolder(CreateSettingsExperience); _settings.FlyoutHotkeyTyped += () => _flyoutViewModel.OpenFlyout(InputType.Keyboard); _settings.MixerHotkeyTyped += () => _mixerWindow.OpenOrClose(); _settings.SettingsHotkeyTyped += () => _settingsWindow.OpenOrBringToFront(); _settings.RegisterHotkeys(); _trayIcon.PrimaryInvoke += (_, type) => _flyoutViewModel.OpenFlyout(type); _trayIcon.SecondaryInvoke += (_, __) => _trayIcon.ShowContextMenu(GetTrayContextMenuItems()); _trayIcon.TertiaryInvoke += (_, __) => _collectionViewModel.Default?.ToggleMute.Execute(null); _trayIcon.Scrolled += (_, wheelDelta) => _collectionViewModel.Default?.IncrementVolume(Math.Sign(wheelDelta) * 2); _trayIcon.SetTooltip(_collectionViewModel.GetTrayToolTip()); _trayIcon.IsVisible = true; DisplayFirstRunExperience(); }
private void CompleteStartup() { AddonManager.Load(); Exit += (_, __) => AddonManager.Shutdown(); _trayIcon.IsVisible = true; DisplayFirstRunExperience(); }