mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 09:48:20 +08:00
Opt: Stop refreshing tasks when the window is not visible (#710)
May fix #710
This commit is contained in:
@@ -8,6 +8,8 @@ from pywebio.session import defer_call, info, run_js
|
||||
class Base:
|
||||
def __init__(self) -> None:
|
||||
self.alive = True
|
||||
# Whether window is visible
|
||||
self.visible = True
|
||||
# Device type
|
||||
self.is_mobile = info.user_agent.is_mobile
|
||||
# Task handler
|
||||
|
||||
Reference in New Issue
Block a user