mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-25 20:56:53 +01:00
eliminate duplicate check on allowUsedSpaceTxtUpdate
This commit is contained in:
parent
d507ba5ed1
commit
35aac59bd8
@ -1693,13 +1693,12 @@ void GameBrowseMenu::UpdateCallback(void * e)
|
|||||||
|
|
||||||
void GameBrowseMenu::SetFreeSpace(float freespace, float used)
|
void GameBrowseMenu::SetFreeSpace(float freespace, float used)
|
||||||
{
|
{
|
||||||
if (strcmp(Settings.db_language, "JA") == 0) {
|
if ( allowUsedSpaceTxtUpdate == true ) {
|
||||||
if ( allowUsedSpaceTxtUpdate == true )
|
if (strcmp(Settings.db_language, "JA") == 0)
|
||||||
usedSpaceTxt->SetText(fmt("%.2fGB %s %.2fGB %s", freespace + used, tr( "of" ), freespace, tr( "free" )));
|
usedSpaceTxt->SetText(fmt("%.2fGB %s %.2fGB %s", freespace + used, tr( "of" ), freespace, tr( "free" )));
|
||||||
}
|
|
||||||
else
|
else
|
||||||
if ( allowUsedSpaceTxtUpdate == true )
|
|
||||||
usedSpaceTxt->SetText(fmt("%.2fGB %s %.2fGB %s", freespace, tr( "of" ), freespace + used, tr( "free" )));
|
usedSpaceTxt->SetText(fmt("%.2fGB %s %.2fGB %s", freespace, tr( "of" ), freespace + used, tr( "free" )));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void GameBrowseMenu::UpdateFreeSpace(void * arg)
|
void GameBrowseMenu::UpdateFreeSpace(void * arg)
|
||||||
|
Loading…
Reference in New Issue
Block a user