Skip to content

Commit 45dcb04

Browse files
committed
Prevent control panel from turning red before sync is confirmed
1 parent 8c0ab6b commit 45dcb04

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Source/UI/ControlPanel.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1135,6 +1135,8 @@ void ControlPanel::buttonClicked (Button* button)
11351135
{
11361136
if (! graph->allRecordNodesAreSynchronized() && ! forceRecording)
11371137
{
1138+
recordButton->setToggleState (false, dontSendNotification);
1139+
11381140
int response = AlertWindow::showOkCancelBox (AlertWindow::WarningIcon,
11391141
"Data streams not synchronized",
11401142
"One or more data streams are not yet synchronized within "
@@ -1145,10 +1147,10 @@ void ControlPanel::buttonClicked (Button* button)
11451147
if (! response)
11461148
{
11471149
CoreServices::sendStatusMessage ("Recording was cancelled.");
1148-
recordButton->setToggleState (false, dontSendNotification);
11491150
return;
11501151
}
11511152

1153+
recordButton->setToggleState (true, dontSendNotification);
11521154
forceRecording = false;
11531155
}
11541156
}

0 commit comments

Comments
 (0)