Browse Source

By default auto-expand mixdepth 0

master
Kristaps Kaupe 4 years ago
parent
commit
7be5e5dfa0
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