Fix #2106123 [[Enhancement] Move 'Show server logs' button to the right of Sharing over the net window](https://bugs.launchpad.net/calibre/+bug/2106123)

This commit is contained in:
Kovid Goyal 2025-04-10 08:42:52 +05:30
parent a48e0e4157
commit d8ac21b896
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -359,9 +359,8 @@ class MainTab(QWidget): # {{{
b = QPushButton(text) b = QPushButton(text)
b.clicked.connect(getattr(self, name).emit) b.clicked.connect(getattr(self, name).emit)
setattr(self, name + '_button', b) setattr(self, name + '_button', b)
if name == 'show_logs':
h.addStretch(10)
h.addWidget(b) h.addWidget(b)
h.addStretch(10)
self.ip_info = QLabel(self) self.ip_info = QLabel(self)
self.update_ip_info() self.update_ip_info()
from calibre.gui2.ui import get_gui from calibre.gui2.ui import get_gui