mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04:00
Fix merge conflicts with upstream
This commit is contained in:
parent
0c6dbe4c8a
commit
357374c147
@ -81,8 +81,6 @@ class WebsiteModeWeb(object):
|
||||
|
||||
self.web.add_request(self.web.REQUEST_LOAD, request.path)
|
||||
|
||||
print(self.file_info)
|
||||
|
||||
filelist = []
|
||||
if self.file_info['files']:
|
||||
self.website_folder = os.path.dirname(self.file_info['files'][0]['filename'])
|
||||
|
@ -75,9 +75,9 @@ class WebsiteMode(Mode):
|
||||
# Download history
|
||||
self.history = History(
|
||||
self.common,
|
||||
QtGui.QPixmap.fromImage(QtGui.QImage(self.common.get_resource_path('images/downloads_transparent.png'))),
|
||||
strings._('gui_no_downloads'),
|
||||
strings._('gui_downloads')
|
||||
QtGui.QPixmap.fromImage(QtGui.QImage(self.common.get_resource_path('images/share_icon_transparent.png'))),
|
||||
strings._('gui_share_mode_no_files'),
|
||||
strings._('gui_all_modes_history')
|
||||
)
|
||||
self.history.hide()
|
||||
|
||||
@ -216,7 +216,7 @@ class WebsiteMode(Mode):
|
||||
"""
|
||||
Handle REQUEST_LOAD event.
|
||||
"""
|
||||
self.system_tray.showMessage(strings._('systray_site_loaded_title'), strings._('systray_site_page_loaded_message'))
|
||||
self.system_tray.showMessage(strings._('systray_site_loaded_title'), strings._('systray_site_loaded_message'))
|
||||
|
||||
def handle_request_started(self, event):
|
||||
"""
|
||||
|
@ -289,23 +289,11 @@ class ServerStatus(QtWidgets.QWidget):
|
||||
self.server_button.setText(strings._('gui_share_stop_server'))
|
||||
else:
|
||||
self.server_button.setText(strings._('gui_receive_stop_server'))
|
||||
<<<<<<< HEAD
|
||||
if self.common.settings.get('autostart_timer'):
|
||||
self.autostart_timer_container.hide()
|
||||
if self.common.settings.get('autostop_timer'):
|
||||
self.autostop_timer_container.hide()
|
||||
self.server_button.setToolTip(strings._('gui_stop_server_autostop_timer_tooltip').format(self.autostop_timer_widget.dateTime().toString("h:mm AP, MMMM dd, yyyy")))
|
||||
=======
|
||||
if self.common.settings.get('shutdown_timeout'):
|
||||
self.shutdown_timeout_container.hide()
|
||||
if self.mode == ServerStatus.MODE_SHARE:
|
||||
self.server_button.setToolTip(strings._('gui_share_stop_server_shutdown_timeout_tooltip').format(self.timeout))
|
||||
if self.mode == ServerStatus.MODE_WEBSITE:
|
||||
self.server_button.setToolTip(strings._('gui_share_stop_server_shutdown_timeout_tooltip').format(self.timeout))
|
||||
else:
|
||||
self.server_button.setToolTip(strings._('gui_receive_stop_server_shutdown_timeout_tooltip').format(self.timeout))
|
||||
|
||||
>>>>>>> Add gui for website sharing and listing
|
||||
elif self.status == self.STATUS_WORKING:
|
||||
self.server_button.setStyleSheet(self.common.css['server_status_button_working'])
|
||||
self.server_button.setEnabled(True)
|
||||
|
@ -147,6 +147,8 @@
|
||||
"systray_menu_exit": "Quit",
|
||||
"systray_page_loaded_title": "Page Loaded",
|
||||
"systray_page_loaded_message": "OnionShare address loaded",
|
||||
"systray_site_loaded_title": "Site Loaded",
|
||||
"systray_site_loaded_message": "OnionShare site loaded",
|
||||
"systray_share_started_title": "Sharing Started",
|
||||
"systray_share_started_message": "Starting to send files to someone",
|
||||
"systray_share_completed_title": "Sharing Complete",
|
||||
|
Loading…
Reference in New Issue
Block a user