Skip to content

Commit

Permalink
Qt/GCMemcardManager: Update free blocks when a memcard is changed
Browse files Browse the repository at this point in the history
  • Loading branch information
spycrab committed Jun 20, 2018
1 parent ce126f1 commit 583ddfa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Source/Core/DolphinQt2/GCMemcardManager.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -212,6 +212,10 @@ void GCMemcardManager::UpdateSlotTable(int slot)
table->setItem(i, 5, create_item(block_count)); table->setItem(i, 5, create_item(block_count));
table->resizeRowToContents(i); 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() void GCMemcardManager::UpdateActions()
Expand All @@ -236,10 +240,6 @@ void GCMemcardManager::SetSlotFile(int slot, QString path)
if (!memcard->IsValid()) if (!memcard->IsValid())
return; 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_file_edit[slot]->setText(path);
m_slot_memcard[slot] = std::move(memcard); m_slot_memcard[slot] = std::move(memcard);


Expand Down

0 comments on commit 583ddfa

Please sign in to comment.