feat: 补齐桌面端下载播放,并将窗口改为夜间主题和应用图标
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import threading
|
||||
|
||||
from server.services.device import DeviceProfile
|
||||
from server.services.live import live
|
||||
|
||||
|
||||
class SessionStore:
|
||||
@@ -26,6 +27,7 @@ class SessionStore:
|
||||
self._active = token
|
||||
self._profile = dict(profile)
|
||||
self._revision += 1
|
||||
live.touch()
|
||||
|
||||
def set_profile(self, token: str, profile: dict) -> bool:
|
||||
with self._lock:
|
||||
@@ -33,6 +35,7 @@ class SessionStore:
|
||||
return False
|
||||
self._profile = dict(profile)
|
||||
self._revision += 1
|
||||
live.touch()
|
||||
return True
|
||||
|
||||
def active_token(self) -> str:
|
||||
@@ -51,6 +54,7 @@ class SessionStore:
|
||||
if self._active == token:
|
||||
self._active = ""
|
||||
self._profile = None
|
||||
live.touch()
|
||||
|
||||
|
||||
sessions = SessionStore()
|
||||
|
||||
Reference in New Issue
Block a user