tqt channels_list: min width, not fixed with (for hiDPI displays), use OK as default button - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 24cf4e7eb0e444f635835350aca3f2e9eb345a05 DIR parent 9862fe5c0ca08480054d878ebe8fb9069e431470 HTML Author: Janus <ysangkok@gmail.com> Date: Thu, 27 Sep 2018 17:55:48 +0200 qt channels_list: min width, not fixed with (for hiDPI displays), use OK as default button Diffstat: M electrum/gui/qt/channels_list.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) --- DIR diff --git a/electrum/gui/qt/channels_list.py b/electrum/gui/qt/channels_list.py t@@ -77,7 +77,7 @@ class ChannelsList(MyTreeWidget): def new_channel_dialog(self): lnworker = self.parent.wallet.lnworker d = WindowModalDialog(self.parent, _('Open Channel')) - d.setFixedWidth(700) + d.setMinimumWidth(700) vbox = QVBoxLayout(d) h = QGridLayout() local_nodeid = QLineEdit() t@@ -98,7 +98,9 @@ class ChannelsList(MyTreeWidget): h.addWidget(QLabel('Push amount'), 3, 0) h.addWidget(push_amt_inp, 3, 1) vbox.addLayout(h) - vbox.addLayout(Buttons(CancelButton(d), OkButton(d))) + ok_button = OkButton(d) + ok_button.setDefault(True) + vbox.addLayout(Buttons(CancelButton(d), ok_button)) suggestion = lnworker.suggest_peer() or b'' remote_nodeid.setText(bh2u(suggestion)) remote_nodeid.setCursorPosition(0)