From ed0bccc7e2b960909a69b6d428e019b1d5eae7bb Mon Sep 17 00:00:00 2001 From: selsta Date: Tue, 30 Apr 2019 02:45:15 +0200 Subject: [PATCH] LeftPanel: don't change font size if balance is hidden --- LeftPanel.qml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/LeftPanel.qml b/LeftPanel.qml index d6590cae..8c6ce0cf 100644 --- a/LeftPanel.qml +++ b/LeftPanel.qml @@ -226,6 +226,9 @@ Rectangle { text: "N/A" // dynamically adjust text size font.pixelSize: { + if (persistentSettings.hideBalance) { + return 20; + } var digits = text.split('.')[0].length var defaultSize = 22; if(digits > 2) { @@ -265,6 +268,9 @@ Rectangle { text: "N/A" // dynamically adjust text size font.pixelSize: { + if (persistentSettings.hideBalance) { + return 20; + } var digits = text.split('.')[0].length var defaultSize = 20; if(digits > 3) {