mirror of
https://github.com/onionshare/onionshare.git
synced 2024-12-27 16:29:41 -05:00
Remove forced height on copy URL button
This commit is contained in:
parent
9c70edfd12
commit
a07cdf855a
@ -27,6 +27,7 @@ from onionshare import strings
|
|||||||
from ..widgets import Alert
|
from ..widgets import Alert
|
||||||
from ..widgets import QRCodeDialog
|
from ..widgets import QRCodeDialog
|
||||||
|
|
||||||
|
|
||||||
class ServerStatus(QtWidgets.QWidget):
|
class ServerStatus(QtWidgets.QWidget):
|
||||||
"""
|
"""
|
||||||
The server status chunk of the GUI.
|
The server status chunk of the GUI.
|
||||||
@ -95,14 +96,17 @@ class ServerStatus(QtWidgets.QWidget):
|
|||||||
self.copy_url_button.setStyleSheet(
|
self.copy_url_button.setStyleSheet(
|
||||||
self.common.gui.css["server_status_url_buttons"]
|
self.common.gui.css["server_status_url_buttons"]
|
||||||
)
|
)
|
||||||
self.copy_url_button.setMinimumHeight(65)
|
|
||||||
self.copy_url_button.clicked.connect(self.copy_url)
|
self.copy_url_button.clicked.connect(self.copy_url)
|
||||||
self.copy_hidservauth_button = QtWidgets.QPushButton(
|
self.copy_hidservauth_button = QtWidgets.QPushButton(
|
||||||
strings._("gui_copy_hidservauth")
|
strings._("gui_copy_hidservauth")
|
||||||
)
|
)
|
||||||
self.show_url_qr_code_button = QtWidgets.QPushButton(strings._("gui_show_url_qr_code"))
|
self.show_url_qr_code_button = QtWidgets.QPushButton(
|
||||||
|
strings._("gui_show_url_qr_code")
|
||||||
|
)
|
||||||
self.show_url_qr_code_button.hide()
|
self.show_url_qr_code_button.hide()
|
||||||
self.show_url_qr_code_button.clicked.connect(self.show_url_qr_code_button_clicked)
|
self.show_url_qr_code_button.clicked.connect(
|
||||||
|
self.show_url_qr_code_button_clicked
|
||||||
|
)
|
||||||
self.show_url_qr_code_button.setFlat(True)
|
self.show_url_qr_code_button.setFlat(True)
|
||||||
self.show_url_qr_code_button.setStyleSheet(
|
self.show_url_qr_code_button.setStyleSheet(
|
||||||
self.common.gui.css["server_status_url_buttons"]
|
self.common.gui.css["server_status_url_buttons"]
|
||||||
|
Loading…
Reference in New Issue
Block a user