electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit a6efa19d73b8ee1834619fd191399335898272ec
parent 2b61c8e0cc46cd984bfa7ad9894f32054e0839e5
Author: ecdsa <ecdsa@github>
Date:   Fri,  5 Apr 2013 04:48:04 +0200

do not show change addresses in expert mode

Diffstat:
Mgui/gui_classic.py | 30+++++++++++++-----------------
1 file changed, 13 insertions(+), 17 deletions(-)

diff --git a/gui/gui_classic.py b/gui/gui_classic.py @@ -1088,12 +1088,14 @@ class ElectrumWindow(QMainWindow): l.addTopLevelItem(account_item) account_item.setExpanded(True) - - for is_change in [0,1]: - name = "Receiving" if not is_change else "Change" - seq_item = QTreeWidgetItem( [ name, '', '', '', ''] ) - account_item.addChild(seq_item) - if not is_change: seq_item.setExpanded(True) + for is_change in ([0,1] if self.expert_mode else [0]): + if self.expert_mode: + name = "Receiving" if not is_change else "Change" + seq_item = QTreeWidgetItem( [ name, '', '', '', ''] ) + account_item.addChild(seq_item) + if not is_change: seq_item.setExpanded(True) + else: + seq_item = account_item is_red = False gap = 0 @@ -1909,16 +1911,10 @@ class ElectrumWindow(QMainWindow): grid_ui.addWidget(cur_combo, 2, 1) grid_ui.addWidget(HelpButton(_('Select which currency is used for quotes.')+' '), 2, 2) - view_label=QLabel(_('Receive Tab') + ':') - grid_ui.addWidget(view_label , 3, 0) - view_combo = QComboBox() - view_combo.addItems([_('Simple'), _('Advanced')]) - view_combo.setCurrentIndex(self.expert_mode) - grid_ui.addWidget(view_combo, 3, 1) - hh = _('This selects the interaction mode of the "Receive" tab.')+' ' + '\n\n' \ - + _('Simple') + ': ' + _('Show only addresses and labels.') + '\n\n' \ - + _('Advanced') + ': ' + _('Show address balances and add extra menu items to freeze/prioritize addresses.') + '\n\n' - + expert_cb = QCheckBox(_('Expert mode')) + expert_cb.setChecked(self.expert_mode) + grid_ui.addWidget(expert_cb, 3, 0) + hh = _('Show address balances and add extra menu items to freeze/prioritize addresses.') grid_ui.addWidget(HelpButton(hh), 3, 2) grid_ui.setRowStretch(4,1) @@ -2098,7 +2094,7 @@ class ElectrumWindow(QMainWindow): if need_restart: QMessageBox.warning(self, _('Success'), _('Please restart Electrum to activate the new GUI settings'), _('OK')) - self.receive_tab_set_mode(view_combo.currentIndex()) + self.receive_tab_set_mode(expert_cb.isChecked()) @staticmethod