Skip to content

Commit

Permalink
Qt: Hide Video Recording Directory option per-game
Browse files Browse the repository at this point in the history
  • Loading branch information
kamfretoz committed Jun 9, 2024
1 parent c99d906 commit bea2179
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions pcsx2-qt/Settings/GraphicsSettingsWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,17 @@ GraphicsSettingsWidget::GraphicsSettingsWidget(SettingsWindow* dialog, QWidget*
onVideoCaptureAutoResolutionChanged();
onEnableAudioCaptureChanged();
onEnableAudioCaptureArgumentsChanged();

if (m_dialog->isPerGameSettings())
{
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
Expand Down
2 changes: 1 addition & 1 deletion pcsx2-qt/Settings/GraphicsSettingsWidget.ui
Original file line number Diff line number Diff line change
Expand Up @@ -1922,7 +1922,7 @@
</property>
<layout class="QVBoxLayout" name="verticalLayout_7">
<item>
<layout class="QHBoxLayout" name="horizontalLayout_8">
<layout class="QHBoxLayout" name="videoDumpLayout">
<item>
<widget class="QLineEdit" name="videoDumpingDirectory"/>
</item>
Expand Down

0 comments on commit bea2179

Please sign in to comment.