mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-01 09:45:18 +00:00
qt channels_list: min width, not fixed with (for hiDPI displays), use OK as default button
This commit is contained in:
parent
9862fe5c0c
commit
24cf4e7eb0
1 changed files with 4 additions and 2 deletions
|
@ -77,7 +77,7 @@ class ChannelsList(MyTreeWidget):
|
||||||
def new_channel_dialog(self):
|
def new_channel_dialog(self):
|
||||||
lnworker = self.parent.wallet.lnworker
|
lnworker = self.parent.wallet.lnworker
|
||||||
d = WindowModalDialog(self.parent, _('Open Channel'))
|
d = WindowModalDialog(self.parent, _('Open Channel'))
|
||||||
d.setFixedWidth(700)
|
d.setMinimumWidth(700)
|
||||||
vbox = QVBoxLayout(d)
|
vbox = QVBoxLayout(d)
|
||||||
h = QGridLayout()
|
h = QGridLayout()
|
||||||
local_nodeid = QLineEdit()
|
local_nodeid = QLineEdit()
|
||||||
|
@ -98,7 +98,9 @@ class ChannelsList(MyTreeWidget):
|
||||||
h.addWidget(QLabel('Push amount'), 3, 0)
|
h.addWidget(QLabel('Push amount'), 3, 0)
|
||||||
h.addWidget(push_amt_inp, 3, 1)
|
h.addWidget(push_amt_inp, 3, 1)
|
||||||
vbox.addLayout(h)
|
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''
|
suggestion = lnworker.suggest_peer() or b''
|
||||||
remote_nodeid.setText(bh2u(suggestion))
|
remote_nodeid.setText(bh2u(suggestion))
|
||||||
remote_nodeid.setCursorPosition(0)
|
remote_nodeid.setCursorPosition(0)
|
||||||
|
|
Loading…
Add table
Reference in a new issue