Skip to content

Commit

Permalink
CashFusion description/label improvements for faster/safer options
Browse files Browse the repository at this point in the history
  • Loading branch information
devalbo committed May 1, 2021
1 parent 7ca9066 commit f5f8c51
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions electroncash_plugins/fusion/qt.py
Expand Up @@ -44,7 +44,7 @@
from electroncash_gui.qt.main_window import ElectrumWindow, StatusBarButton
from electroncash_gui.qt.popup_widget import ShowPopupLabel, KillPopupLabel
from electroncash_gui.qt.util import (
Buttons, CancelButton, CloseButton, ColorScheme, OkButton, WaitingDialog, WindowModalDialog)
Buttons, CancelButton, CloseButton, ColorScheme, OkButton, WaitingDialog, WindowModalDialog, HelpButton)
from electroncash_gui.qt.utils import PortValidator, UserPortValidator

from .conf import Conf, Global
Expand Down Expand Up @@ -966,17 +966,20 @@ def __init__(self, parent, plugin, wallet):
main_layout.addWidget(gb)


box = QGroupBox(_("Self-Fusing"))
box = QGroupBox(_("Fuse Faster"))
main_layout.addWidget(box)
slayout = QVBoxLayout(box)

lbl = QLabel(_("Allow this wallet to participate multiply in the same fusion round?"))
label_box = QHBoxLayout()
lbl = QLabel(_("Faster gets multiple fuses from this wallet in one transaction, possibly lowering privacy."))
lbl.setWordWrap(True)
slayout.addWidget(lbl)
label_box.addWidget(lbl)
label_box.addWidget(HelpButton("Setting this to 'Faster' reduces your privacy, but makes Fusion more likely if not enough others are currently running CashFusion."))
slayout.addLayout(label_box) ; del label_box
box = QHBoxLayout(); box.setContentsMargins(0,0,0,0)
self.combo_self_fuse = QComboBox()
self.combo_self_fuse.addItem(_('No'), 1)
self.combo_self_fuse.addItem(_('Yes - as up to two players'), 2)
self.combo_self_fuse.addItem(_('Faster'), 1)
self.combo_self_fuse.addItem(_('Safer'), 2)
box.addStretch(1)
box.addWidget(self.combo_self_fuse)
slayout.addLayout(box) ; del box
Expand Down

0 comments on commit f5f8c51

Please sign in to comment.