mirror of https://github.com/PCSX2/pcsx2.git
Qt: Remove the duplicate memcard button
This commit is contained in:
parent
c3afaae169
commit
3576a1824d
|
@ -54,7 +54,6 @@ MemoryCardSettingsWidget::MemoryCardSettingsWidget(SettingsWindow* dialog, QWidg
|
|||
|
||||
connect(m_ui.refreshCard, &QPushButton::clicked, this, &MemoryCardSettingsWidget::refresh);
|
||||
connect(m_ui.createCard, &QPushButton::clicked, this, &MemoryCardSettingsWidget::createCard);
|
||||
connect(m_ui.duplicateCard, &QPushButton::clicked, this, &MemoryCardSettingsWidget::duplicateCard);
|
||||
connect(m_ui.renameCard, &QPushButton::clicked, this, &MemoryCardSettingsWidget::renameCard);
|
||||
connect(m_ui.convertCard, &QPushButton::clicked, this, &MemoryCardSettingsWidget::convertCard);
|
||||
connect(m_ui.deleteCard, &QPushButton::clicked, this, &MemoryCardSettingsWidget::deleteCard);
|
||||
|
@ -193,20 +192,10 @@ void MemoryCardSettingsWidget::updateCardActions()
|
|||
bool isPS1 = (cardInfo.has_value() ? cardInfo.value().file_type == MemoryCardFileType::PS1 : false);
|
||||
|
||||
m_ui.convertCard->setEnabled(hasSelection && !isPS1);
|
||||
m_ui.duplicateCard->setEnabled(hasSelection);
|
||||
m_ui.renameCard->setEnabled(hasSelection);
|
||||
m_ui.deleteCard->setEnabled(hasSelection);
|
||||
}
|
||||
|
||||
void MemoryCardSettingsWidget::duplicateCard()
|
||||
{
|
||||
const QString selectedCard(getSelectedCard());
|
||||
if (selectedCard.isEmpty())
|
||||
return;
|
||||
|
||||
QMessageBox::critical(this, tr("Error"), tr("Not yet implemented."));
|
||||
}
|
||||
|
||||
void MemoryCardSettingsWidget::deleteCard()
|
||||
{
|
||||
const QString selectedCard(getSelectedCard());
|
||||
|
@ -294,7 +283,6 @@ void MemoryCardSettingsWidget::listContextMenuRequested(const QPoint& pos)
|
|||
}
|
||||
menu.addSeparator();
|
||||
|
||||
connect(menu.addAction(tr("Duplicate")), &QAction::triggered, this, &MemoryCardSettingsWidget::duplicateCard);
|
||||
connect(menu.addAction(tr("Rename")), &QAction::triggered, this, &MemoryCardSettingsWidget::renameCard);
|
||||
connect(menu.addAction(tr("Convert")), &QAction::triggered, this, &MemoryCardSettingsWidget::convertCard);
|
||||
connect(menu.addAction(tr("Delete")), &QAction::triggered, this, &MemoryCardSettingsWidget::deleteCard);
|
||||
|
|
|
@ -98,7 +98,6 @@ private:
|
|||
|
||||
QString getSelectedCard() const;
|
||||
void updateCardActions();
|
||||
void duplicateCard();
|
||||
void deleteCard();
|
||||
void renameCard();
|
||||
void convertCard();
|
||||
|
|
|
@ -146,13 +146,6 @@
|
|||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="duplicateCard">
|
||||
<property name="text">
|
||||
<string>Duplicate</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="renameCard">
|
||||
<property name="text">
|
||||
|
|
Loading…
Reference in New Issue