mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-28 10:52:08 -04:00
Fix logic that checks if auto-start timer setting is enabled, so that it checks real settings and not widget instantiation. Ensure the auto-start and auto-stop widgets show their datetime widget on start-up if the setting was already enabled.
This commit is contained in:
parent
1c424500f0
commit
a7856d5dcb
4 changed files with 15 additions and 21 deletions
|
@ -287,7 +287,7 @@ class Tab(QtWidgets.QWidget):
|
|||
strings._("gui_status_indicator_share_stopped")
|
||||
)
|
||||
elif self.share_mode.server_status.status == ServerStatus.STATUS_WORKING:
|
||||
if self.share_mode.server_status.autostart_timer_datetime:
|
||||
if self.settings.get("general", "autostart_timer"):
|
||||
self.set_server_status_indicator_working(
|
||||
strings._("gui_status_indicator_share_scheduled")
|
||||
)
|
||||
|
@ -320,7 +320,7 @@ class Tab(QtWidgets.QWidget):
|
|||
strings._("gui_status_indicator_receive_stopped")
|
||||
)
|
||||
elif self.receive_mode.server_status.status == ServerStatus.STATUS_WORKING:
|
||||
if self.receive_mode.server_status.autostart_timer_datetime:
|
||||
if self.settings.get("general", "autostart_timer"):
|
||||
self.set_server_status_indicator_working(
|
||||
strings._("gui_status_indicator_receive_scheduled")
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue