Qt: Hide Video Recording Directory option per-game

This commit is contained in:
KamFretoZ 2024-06-09 21:59:40 +07:00 committed by Connor McLaughlin
parent 62c5309b23
commit 99a30733c1
2 changed files with 13 additions and 1 deletions

View File

@ -402,6 +402,18 @@ GraphicsSettingsWidget::GraphicsSettingsWidget(SettingsWindow* dialog, QWidget*
onVideoCaptureAutoResolutionChanged(); onVideoCaptureAutoResolutionChanged();
onEnableAudioCaptureChanged(); onEnableAudioCaptureChanged();
onEnableAudioCaptureArgumentsChanged(); onEnableAudioCaptureArgumentsChanged();
if (m_dialog->isPerGameSettings())
{
m_ui.recordingTabLayout->removeWidget(m_ui.videoDumpDirectory);
m_ui.videoDumpDirectory->deleteLater();
m_ui.videoDumpDirectory = nullptr;
m_ui.videoDumpLayout = nullptr;
m_ui.videoDumpingDirectory = nullptr;
m_ui.videoDumpingDirectoryBrowse = nullptr;
m_ui.videoDumpingDirectoryOpen = nullptr;
m_ui.videoDumpingDirectoryReset = nullptr;
}
} }
// Display tab // Display tab

View File

@ -1922,7 +1922,7 @@
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout_7"> <layout class="QVBoxLayout" name="verticalLayout_7">
<item> <item>
<layout class="QHBoxLayout" name="horizontalLayout_8"> <layout class="QHBoxLayout" name="videoDumpLayout">
<item> <item>
<widget class="QLineEdit" name="videoDumpingDirectory"/> <widget class="QLineEdit" name="videoDumpingDirectory"/>
</item> </item>