diff --git a/onionshare_gui/mode.py b/onionshare_gui/mode.py index a1f475d1..8a16e773 100644 --- a/onionshare_gui/mode.py +++ b/onionshare_gui/mode.py @@ -86,15 +86,10 @@ class Mode(QtWidgets.QWidget): """ This method is called regularly on a timer. """ - self.common.log('Mode', 'timer_callback') # If the auto-shutdown timer has stopped, stop the server - print(self.server_status.status) ## HERE IS THE PROBLEM, self.server_status.status isn't getting updated if self.server_status.status == ServerStatus.STATUS_STARTED: - print('debug1') if self.app.shutdown_timer and self.common.settings.get('shutdown_timeout'): - print('debug2') if self.timeout > 0: - print('debug3') now = QtCore.QDateTime.currentDateTime() seconds_remaining = now.secsTo(self.server_status.timeout) diff --git a/onionshare_gui/receive_mode/__init__.py b/onionshare_gui/receive_mode/__init__.py index 43457566..2b7a6295 100644 --- a/onionshare_gui/receive_mode/__init__.py +++ b/onionshare_gui/receive_mode/__init__.py @@ -51,12 +51,15 @@ class ReceiveMode(Mode): # Layout self.layout.insertWidget(0, self.receive_info) - - def timer_callback(self): + + def timer_callback_custom(self): """ - This method is called regularly on a timer while receive mode is active. + This method is called regularly on a timer while share mode is active. """ - pass + # Scroll to the bottom of the download progress bar log pane if a new download has been added + #if self.new_download: + # self.downloads.downloads_container.vbar.setValue(self.downloads.downloads_container.vbar.maximum()) + # self.new_download = False def get_stop_server_shutdown_timeout_text(self): """