mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-07 00:45:11 -04:00
Add a 'persistent URL' label when re-using a private key
This commit is contained in:
parent
488d88886d
commit
9aef3cdbb3
3 changed files with 14 additions and 7 deletions
|
@ -22,7 +22,6 @@ from .alert import Alert
|
|||
from PyQt5 import QtCore, QtWidgets, QtGui
|
||||
|
||||
from onionshare import strings, common
|
||||
from onionshare.settings import Settings
|
||||
|
||||
class ServerStatus(QtWidgets.QVBoxLayout):
|
||||
"""
|
||||
|
@ -37,7 +36,7 @@ class ServerStatus(QtWidgets.QVBoxLayout):
|
|||
STATUS_WORKING = 1
|
||||
STATUS_STARTED = 2
|
||||
|
||||
def __init__(self, qtapp, app, web, file_selection, settings):
|
||||
def __init__(self, qtapp, app, web, file_selection):
|
||||
super(ServerStatus, self).__init__()
|
||||
self.status = self.STATUS_STOPPED
|
||||
|
||||
|
@ -45,7 +44,6 @@ class ServerStatus(QtWidgets.QVBoxLayout):
|
|||
self.app = app
|
||||
self.web = web
|
||||
self.file_selection = file_selection
|
||||
self.settings = settings
|
||||
|
||||
# Helper boolean as this is used in a few places
|
||||
self.timer_enabled = False
|
||||
|
@ -142,8 +140,6 @@ class ServerStatus(QtWidgets.QVBoxLayout):
|
|||
self.url_label.setText('http://{0:s}/{1:s}'.format(self.app.onion_host, self.web.slug))
|
||||
self.url_label.show()
|
||||
self.copy_url_button.show()
|
||||
if self.settings.get('save_private_key'):
|
||||
common.log('ServerStatus', 'update', '@TODO need to show a "persistent URL in use" label')
|
||||
|
||||
if self.app.stealth:
|
||||
self.copy_hidservauth_button.show()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue