From b19f469b1319ccd2790517d412560f16c1388126 Mon Sep 17 00:00:00 2001 From: w3irDv <170813473+w3irDv@users.noreply.github.com> Date: Mon, 29 Jul 2024 00:19:04 +0200 Subject: [PATCH] revert change - keep check on allowUsedSpaceTxtUpdate before each setText --- source/menu/GameBrowseMenu.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/source/menu/GameBrowseMenu.cpp b/source/menu/GameBrowseMenu.cpp index a4e7bef0..9f849a1c 100644 --- a/source/menu/GameBrowseMenu.cpp +++ b/source/menu/GameBrowseMenu.cpp @@ -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)