Browse Source

Merge #939: Qt: By default auto-expand mixdepth 0

7be5e5dfa0 By default auto-expand mixdepth 0 (Kristaps Kaupe)

Pull request description:

  Restore pre-#934 behaviour in this regard. See discussion in #937.

Top commit has no ACKs.

Tree-SHA512: 932e1ef6e3ec386dab965925e8bffdae89333ac95c0b1da45f727e46810fb1d19684e7f07f20706cd22751c1b0f899acaf9152973a7efb2e97a512c48de5054c
master
Kristaps Kaupe 4 years ago
parent
commit
78e0f37768
No known key found for this signature in database
GPG Key ID: 33E472FE870C7E5D
  1. 5
      scripts/joinmarket-qt.py

5
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]:

Loading…
Cancel
Save