private void UpdateIsPaused() { bool IsPausedByFullScreen() => _settingsService.IsPauseWhenFullScreenEnabled && _externalApplicationService.IsForegroundApplicationFullScreen(); bool IsPausedByWhitelistedApplication() => _settingsService.IsApplicationWhitelistEnabled && _settingsService.WhitelistedApplications != null && _settingsService.WhitelistedApplications.Contains(_externalApplicationService.GetForegroundApplication()); IsPaused = IsPausedByFullScreen() || IsPausedByWhitelistedApplication(); }