revert change - keep check on allowUsedSpaceTxtUpdate before each setText

This commit is contained in:
w3irDv 2024-07-29 00:19:04 +02:00
parent 35aac59bd8
commit b19f469b13

View File

@ -1693,12 +1693,15 @@ void GameBrowseMenu::UpdateCallback(void * e)
void GameBrowseMenu::SetFreeSpace(float freespace, float used)
{
if ( allowUsedSpaceTxtUpdate == true ) {
if (strcmp(Settings.db_language, "JA") == 0)
if (strcmp(Settings.db_language, "JA") == 0) {
if ( allowUsedSpaceTxtUpdate == true )
usedSpaceTxt->SetText(fmt("%.2fGB %s %.2fGB %s", freespace + used, tr( "of" ), freespace, tr( "free" )));
else
usedSpaceTxt->SetText(fmt("%.2fGB %s %.2fGB %s", freespace, tr( "of" ), freespace + used, tr( "free" )));
}
else
if ( allowUsedSpaceTxtUpdate == true )
usedSpaceTxt->SetText(fmt("%.2fGB %s %.2fGB %s", freespace, tr( "of" ), freespace + used, tr( "free" )));
}
void GameBrowseMenu::UpdateFreeSpace(void * arg)