Fix unsetting autostart timer after reloading settings

This commit is contained in:
Miguel Jacq 2019-03-24 18:16:29 +11:00
parent 2ebc22c5af
commit dae3e23652
No known key found for this signature in database
GPG Key ID: EEA4341C6D97A0B6

View File

@ -321,6 +321,8 @@ class OnionShareGui(QtWidgets.QMainWindow):
self.receive_mode.server_status.shutdown_timeout_container.hide()
# If we switched off the startup timer setting, ensure the widget is hidden.
if not self.common.settings.get('startup_timer'):
self.share_mode.server_status.scheduled_start = None
self.receive_mode.server_status.scheduled_start = None
self.share_mode.server_status.startup_timer_container.hide()
self.receive_mode.server_status.startup_timer_container.hide()