feat: 改进缓存管理器

This commit is contained in:
2025-12-08 16:50:44 +08:00
parent 483670b23d
commit 42708e8a09
4 changed files with 112 additions and 79 deletions

View File

@@ -18,7 +18,6 @@ from heurams.context import *
class PreparationScreen(Screen):
BINDINGS = [
("q", "go_back", "返回"),
("escape", "quit_app", "退出"),
("p", "precache", "预缓存音频")
]
@@ -69,7 +68,10 @@ class PreparationScreen(Screen):
def action_precache(self):
from ..screens.precache import PrecachingScreen
precache_screen = PrecachingScreen(self.nucleon_file)
lst = list()
for i in self.nucleons_with_orbital:
lst.append(i[0])
precache_screen = PrecachingScreen(lst)
self.app.push_screen(precache_screen)
def action_quit_app(self):