From 7be5e5dfa062b239719218d09d01d98faddfd2fc Mon Sep 17 00:00:00 2001 From: Kristaps Kaupe Date: Fri, 23 Jul 2021 17:47:01 +0300 Subject: [PATCH] By default auto-expand mixdepth 0 --- scripts/joinmarket-qt.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/joinmarket-qt.py b/scripts/joinmarket-qt.py index 7f4cca0..9ec67d1 100755 --- a/scripts/joinmarket-qt.py +++ b/scripts/joinmarket-qt.py @@ -1511,8 +1511,9 @@ class JMWalletTab(QWidget): # if expansion states existed, reinstate them: if len(previous_expand_states) == max_mixdepth_count: m_item.setExpanded(previous_expand_states[mixdepth][0]) - # by default, if the balance of the mix depth is greater than 0, expand it - elif float(mdbalance) > 0: + # by default, if the mixdepth is 0 or balance of the mixdepth is + # greater than 0, expand it + elif mixdepth == 0 or float(mdbalance) > 0: m_item.setExpanded(True) for forchange in [0, 1]: