UI: Fix wrong program scene if tbar is aborted
The program scene would be incorrect if the tbar was released at its original position.
This commit is contained in:
parent
6e22af932d
commit
03a94aee41
2 changed files with 2 additions and 2 deletions
|
|
@ -309,8 +309,6 @@ void OBSBasic::TransitionToScene(OBSSource source, bool force,
|
|||
if (!scene)
|
||||
return;
|
||||
|
||||
OBSWeakSource lastProgramScene;
|
||||
|
||||
if (usingPreviewProgram) {
|
||||
if (!tBarActive)
|
||||
lastProgramScene = programScene;
|
||||
|
|
@ -906,6 +904,7 @@ void OBSBasic::TBarReleased()
|
|||
tBar->blockSignals(false);
|
||||
tBarActive = false;
|
||||
EnableTransitionWidgets(true);
|
||||
programScene = lastProgramScene;
|
||||
}
|
||||
|
||||
tBar->clearFocus();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue