From b71b6473e32997557faf89a6576f35fbda30823b Mon Sep 17 00:00:00 2001 From: Simon Clark Date: Sat, 6 Feb 2021 19:56:17 +0000 Subject: [PATCH] Start 2.4.1, fix #852. --- changelog.md | 6 ++++++ qt_ui/widgets/QBudgetBox.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index e3776b32..52eb6ccb 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,9 @@ +# 2.4.1 + +## Fixes + +* **[UI]** Budget display is also now rounded to 2 decimal places. + # 2.4.0 Saves from 2.3 are not compatible with 2.4. diff --git a/qt_ui/widgets/QBudgetBox.py b/qt_ui/widgets/QBudgetBox.py index 67ef04a5..c8ba24dd 100644 --- a/qt_ui/widgets/QBudgetBox.py +++ b/qt_ui/widgets/QBudgetBox.py @@ -35,7 +35,7 @@ class QBudgetBox(QGroupBox): :param budget: Current money available :param reward: Planned reward for next turn """ - self.money_amount.setText(str(budget) + "M (+" + str(round(reward,2)) + "M)") + self.money_amount.setText(str(round(budget,2)) + "M (+" + str(round(reward,2)) + "M)") def setGame(self, game): if game is None: