diff --git a/pcsx2-qt/Settings/MemoryCardSettingsWidget.cpp b/pcsx2-qt/Settings/MemoryCardSettingsWidget.cpp index 8eb4487650..8bf96062e5 100644 --- a/pcsx2-qt/Settings/MemoryCardSettingsWidget.cpp +++ b/pcsx2-qt/Settings/MemoryCardSettingsWidget.cpp @@ -16,6 +16,7 @@ #include "PrecompiledHeader.h" #include +#include #include #include #include @@ -48,12 +49,14 @@ MemoryCardSettingsWidget::MemoryCardSettingsWidget(SettingsDialog* dialog, QWidg // this is a bit lame, but resizeEvent() isn't good enough to autosize our columns, // since the group box hasn't been resized at that point. m_ui.cardGroupBox->installEventFilter(this); - + + SettingWidgetBinder::BindWidgetToFolderSetting(sif, m_ui.directory, m_ui.browse, m_ui.open, m_ui.reset, "Folders", "MemoryCards", "memcards"); SettingWidgetBinder::BindWidgetToBoolSetting(sif, m_ui.autoEject, "EmuCore", "McdEnableEjection", true); SettingWidgetBinder::BindWidgetToBoolSetting(sif, m_ui.automaticManagement, "EmuCore", "McdFolderAutoManage", true); setupAdditionalUi(); + connect(m_ui.directory, &QLineEdit::textChanged, this, &MemoryCardSettingsWidget::refresh); m_ui.cardList->setContextMenuPolicy(Qt::CustomContextMenu); connect(m_ui.cardList, &MemoryCardListWidget::itemSelectionChanged, this, &MemoryCardSettingsWidget::updateCardActions); connect(m_ui.cardList, &MemoryCardListWidget::customContextMenuRequested, this, &MemoryCardSettingsWidget::listContextMenuRequested); diff --git a/pcsx2-qt/Settings/MemoryCardSettingsWidget.ui b/pcsx2-qt/Settings/MemoryCardSettingsWidget.ui index e7efe2115d..ce1543c688 100644 --- a/pcsx2-qt/Settings/MemoryCardSettingsWidget.ui +++ b/pcsx2-qt/Settings/MemoryCardSettingsWidget.ui @@ -6,7 +6,7 @@ 0 0 - 796 + 639 443 @@ -58,6 +58,41 @@ Memory Cards + + + + + + Folder: + + + + + + + + + + Browse... + + + + + + + Open... + + + + + + + Reset + + + + +