Permalink
Browse files

Qt/GCMemcardManager: Update free blocks when a memcard is changed

  • Loading branch information...
spycrab committed Jun 19, 2018
1 parent ce126f1 commit 583ddfa8f0e094ff4e912955f2fc5b14ba9ec95b
Showing with 4 additions and 4 deletions.
  1. +4 −4 Source/Core/DolphinQt2/GCMemcardManager.cpp
@@ -212,6 +212,10 @@ void GCMemcardManager::UpdateSlotTable(int slot)
table->setItem(i, 5, create_item(block_count));
table->resizeRowToContents(i);
}
m_slot_stat_label[slot]->setText(tr("%1 Free Blocks; %2 Free Dir Entries")
.arg(memcard->GetFreeBlocks())
.arg(DIRLEN - memcard->GetNumFiles()));
}
void GCMemcardManager::UpdateActions()
@@ -236,10 +240,6 @@ void GCMemcardManager::SetSlotFile(int slot, QString path)
if (!memcard->IsValid())
return;
m_slot_stat_label[slot]->setText(tr("%1 Free Blocks; %2 Free Dir Entries")
.arg(memcard->GetFreeBlocks())
.arg(DIRLEN - memcard->GetNumFiles()));
m_slot_file_edit[slot]->setText(path);
m_slot_memcard[slot] = std::move(memcard);

0 comments on commit 583ddfa

Please sign in to comment.