UI: Add save button next to replay buffer button
Allows the ability to save replays with a button rather than with the keyboard if desired. Closes obsproject/obs-studio#1954
This commit is contained in:
parent
d3b6f7a71f
commit
e2fa510436
12 changed files with 94 additions and 2 deletions
|
|
@ -17,3 +17,20 @@ void RecordButton::resizeEvent(QResizeEvent *event)
|
|||
|
||||
event->accept();
|
||||
}
|
||||
|
||||
void ReplayBufferButton::resizeEvent(QResizeEvent *event)
|
||||
{
|
||||
OBSBasic *main = OBSBasic::Get();
|
||||
if (!main->replay)
|
||||
return;
|
||||
|
||||
QSize replaySize = main->replay->size();
|
||||
int height = main->ui->recordButton->size().height();
|
||||
|
||||
if (replaySize.height() != height || replaySize.width() != height) {
|
||||
main->replay->setMinimumSize(height, height);
|
||||
main->replay->setMaximumSize(height, height);
|
||||
}
|
||||
|
||||
event->accept();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue