mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-03 23:15:18 -04:00
Remove the useless gui=True arg getting passed intro strings._ all over the place
This commit is contained in:
parent
c572ab996a
commit
a1f5b5964a
12 changed files with 152 additions and 152 deletions
|
@ -51,7 +51,7 @@ class TorConnectionDialog(QtWidgets.QProgressDialog):
|
|||
self.setFixedSize(400, 150)
|
||||
|
||||
# Label
|
||||
self.setLabelText(strings._('connecting_to_tor', True))
|
||||
self.setLabelText(strings._('connecting_to_tor'))
|
||||
|
||||
# Progress bar ticks from 0 to 100
|
||||
self.setRange(0, 100)
|
||||
|
@ -81,7 +81,7 @@ class TorConnectionDialog(QtWidgets.QProgressDialog):
|
|||
|
||||
def _tor_status_update(self, progress, summary):
|
||||
self.setValue(int(progress))
|
||||
self.setLabelText("<strong>{}</strong><br>{}".format(strings._('connecting_to_tor', True), summary))
|
||||
self.setLabelText("<strong>{}</strong><br>{}".format(strings._('connecting_to_tor'), summary))
|
||||
|
||||
def _connected_to_tor(self):
|
||||
self.common.log('TorConnectionDialog', '_connected_to_tor')
|
||||
|
@ -104,7 +104,7 @@ class TorConnectionDialog(QtWidgets.QProgressDialog):
|
|||
|
||||
def alert_and_open_settings():
|
||||
# Display the exception in an alert box
|
||||
Alert(self.common, "{}\n\n{}".format(msg, strings._('gui_tor_connection_error_settings', True)), QtWidgets.QMessageBox.Warning)
|
||||
Alert(self.common, "{}\n\n{}".format(msg, strings._('gui_tor_connection_error_settings')), QtWidgets.QMessageBox.Warning)
|
||||
|
||||
# Open settings
|
||||
self.open_settings.emit()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue