From 103bec6526c3dc6f10417fd31d4eb6a36ecc6619 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Tue, 19 Feb 2019 19:26:37 -0800 Subject: [PATCH] UI: Fix disabling "resize output to source" This should always be disabled if video output is active. Additionally, the expression used to determine whether it should be enabled/disabled was very unreadable. --- UI/window-basic-main.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/UI/window-basic-main.cpp b/UI/window-basic-main.cpp index 68161991..617a256b 100644 --- a/UI/window-basic-main.cpp +++ b/UI/window-basic-main.cpp @@ -4361,10 +4361,7 @@ void OBSBasic::CreateSourcePopupMenu(int idx, bool preview) int width = obs_source_get_width(source); int height = obs_source_get_height(source); - resizeOutput->setEnabled(!(ui->streamButton->isChecked() || - ui->recordButton->isChecked() || - (replayBufferButton && - replayBufferButton->isChecked()))); + resizeOutput->setEnabled(!obs_video_active()); if (width == 0 || height == 0) resizeOutput->setEnabled(false); -- GitLab