Skip to content

Commit

Permalink
Toggle dual output when logging in via dual output login prompt. (#4619)
Browse files Browse the repository at this point in the history
* Toggle dual output when logging in via dual output login prompt.

* Unsubscribe from login subscription.
  • Loading branch information
michelinewu committed Jul 14, 2023
1 parent ee1e870 commit 8f14925
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/components-react/windows/settings/Video.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,11 @@ class VideoSettingsModule {
handleAuth() {
Services.WindowsService.actions.closeChildWindow();
this.userService.actions.showLogin();
const onboardingCompleted = Services.OnboardingService.onboardingCompleted.subscribe(() => {
Services.DualOutputService.actions.setdualOutputMode();
Services.SettingsService.actions.showSettings('Video');
onboardingCompleted.unsubscribe();
});
}
}

Expand Down
4 changes: 4 additions & 0 deletions app/services/onboarding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { ObsImporterService } from './obs-importer';
import Utils from './utils';
import { RecordingModeService } from './recording-mode';
import * as remote from '@electron/remote';
import { Subject } from 'rxjs';

enum EOnboardingSteps {
MacPermissions = 'MacPermissions',
Expand Down Expand Up @@ -218,6 +219,8 @@ export class OnboardingService extends StatefulService<IOnboardingServiceState>

localStorageKey = 'UserHasBeenOnboarded';

onboardingCompleted = new Subject();

@Inject() navigationService: NavigationService;
@Inject() userService: UserService;
@Inject() sceneCollectionsService: SceneCollectionsService;
Expand Down Expand Up @@ -311,6 +314,7 @@ export class OnboardingService extends StatefulService<IOnboardingServiceState>
}

this.navigationService.navigate('Studio');
this.onboardingCompleted.next();
}

get isTwitchAuthed() {
Expand Down

0 comments on commit 8f14925

Please sign in to comment.