Fix a minor corner case related to server status button when canceling a scheduled share. Leverage scheduled shares in order to test 'cancel' action in local mode for better test coverage

This commit is contained in:
Miguel Jacq 2019-03-08 11:03:37 +11:00
parent 00a8b88264
commit dc0fe4f7b1
No known key found for this signature in database
GPG key ID: EEA4341C6D97A0B6
5 changed files with 43 additions and 15 deletions

View file

@ -115,9 +115,9 @@ class StartupTimer(QtCore.QThread):
now = QtCore.QDateTime.currentDateTime()
scheduled_start = now.secsTo(self.mode.server_status.scheduled_start)
# Timer has now finished
self.mode.server_status.server_button.setText(strings._('gui_please_wait'))
self.mode.server_status_label.setText(strings._('gui_status_indicator_share_working'))
if self.canceled == False:
self.mode.server_status.server_button.setText(strings._('gui_please_wait'))
self.mode.server_status_label.setText(strings._('gui_status_indicator_share_working'))
self.success.emit()
except ValueError as e:
self.error.emit(e.args[0])