mirror of
https://github.com/onionshare/onionshare.git
synced 2025-06-28 16:27:23 -04:00
URL display is no longer tiny, and window gets autoresized if URL is too big (fixes #183)
This commit is contained in:
parent
288e8ca532
commit
eb9dc99a19
1 changed files with 4 additions and 1 deletions
|
@ -56,7 +56,6 @@ class ServerStatus(QtGui.QVBoxLayout):
|
||||||
|
|
||||||
# url layout
|
# url layout
|
||||||
url_font = QtGui.QFont()
|
url_font = QtGui.QFont()
|
||||||
url_font.setPointSize(8)
|
|
||||||
self.url_label = QtGui.QLabel()
|
self.url_label = QtGui.QLabel()
|
||||||
self.url_label.setFont(url_font)
|
self.url_label.setFont(url_font)
|
||||||
self.url_label.setWordWrap(True)
|
self.url_label.setWordWrap(True)
|
||||||
|
@ -87,6 +86,10 @@ class ServerStatus(QtGui.QVBoxLayout):
|
||||||
self.url_label.setText('http://{0:s}/ {1:s}'.format(self.app.onion_host, self.web.slug))
|
self.url_label.setText('http://{0:s}/ {1:s}'.format(self.app.onion_host, self.web.slug))
|
||||||
self.url_label.show()
|
self.url_label.show()
|
||||||
self.copy_url_button.show()
|
self.copy_url_button.show()
|
||||||
|
|
||||||
|
# resize parent widget
|
||||||
|
p = self.parentWidget()
|
||||||
|
p.resize(p.sizeHint())
|
||||||
else:
|
else:
|
||||||
self.url_label.hide()
|
self.url_label.hide()
|
||||||
self.copy_url_button.hide()
|
self.copy_url_button.hide()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue