mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-20 15:20:30 -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
|
@ -113,7 +113,7 @@ class Upload(QtWidgets.QWidget):
|
|||
self.started = datetime.now()
|
||||
|
||||
# Label
|
||||
self.label = QtWidgets.QLabel(strings._('gui_upload_in_progress', True).format(self.started.strftime("%b %d, %I:%M%p")))
|
||||
self.label = QtWidgets.QLabel(strings._('gui_upload_in_progress').format(self.started.strftime("%b %d, %I:%M%p")))
|
||||
|
||||
# Progress bar
|
||||
self.progress_bar = QtWidgets.QProgressBar()
|
||||
|
@ -190,16 +190,16 @@ class Upload(QtWidgets.QWidget):
|
|||
self.ended = self.started = datetime.now()
|
||||
if self.started.year == self.ended.year and self.started.month == self.ended.month and self.started.day == self.ended.day:
|
||||
if self.started.hour == self.ended.hour and self.started.minute == self.ended.minute:
|
||||
text = strings._('gui_upload_finished', True).format(
|
||||
text = strings._('gui_upload_finished').format(
|
||||
self.started.strftime("%b %d, %I:%M%p")
|
||||
)
|
||||
else:
|
||||
text = strings._('gui_upload_finished_range', True).format(
|
||||
text = strings._('gui_upload_finished_range').format(
|
||||
self.started.strftime("%b %d, %I:%M%p"),
|
||||
self.ended.strftime("%I:%M%p")
|
||||
)
|
||||
else:
|
||||
text = strings._('gui_upload_finished_range', True).format(
|
||||
text = strings._('gui_upload_finished_range').format(
|
||||
self.started.strftime("%b %d, %I:%M%p"),
|
||||
self.ended.strftime("%b %d, %I:%M%p")
|
||||
)
|
||||
|
@ -220,7 +220,7 @@ class Uploads(QtWidgets.QScrollArea):
|
|||
|
||||
self.uploads = {}
|
||||
|
||||
self.setWindowTitle(strings._('gui_uploads', True))
|
||||
self.setWindowTitle(strings._('gui_uploads'))
|
||||
self.setWidgetResizable(True)
|
||||
self.setMinimumHeight(150)
|
||||
self.setMinimumWidth(350)
|
||||
|
@ -229,10 +229,10 @@ class Uploads(QtWidgets.QScrollArea):
|
|||
self.vbar = self.verticalScrollBar()
|
||||
self.vbar.rangeChanged.connect(self.resizeScroll)
|
||||
|
||||
uploads_label = QtWidgets.QLabel(strings._('gui_uploads', True))
|
||||
uploads_label = QtWidgets.QLabel(strings._('gui_uploads'))
|
||||
uploads_label.setStyleSheet(self.common.css['downloads_uploads_label'])
|
||||
self.no_uploads_label = QtWidgets.QLabel(strings._('gui_no_uploads', True))
|
||||
self.clear_history_button = QtWidgets.QPushButton(strings._('gui_clear_history', True))
|
||||
self.no_uploads_label = QtWidgets.QLabel(strings._('gui_no_uploads'))
|
||||
self.clear_history_button = QtWidgets.QPushButton(strings._('gui_clear_history'))
|
||||
self.clear_history_button.clicked.connect(self.reset)
|
||||
self.clear_history_button.hide()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue