From 4ac12479cc86662f93e40665c9f1517680db5c52 Mon Sep 17 00:00:00 2001 From: david-ajax Date: Tue, 7 Oct 2025 03:00:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- metadata.py | 6 +++++- screens.py | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/metadata.py b/metadata.py index a6396c1..4931493 100644 --- a/metadata.py +++ b/metadata.py @@ -1,3 +1,7 @@ #!/usr/bin/env python3 ver = "0.3.7" -stage = "prod_rev1" \ No newline at end of file +stage = "prod_rev1" + +def get_stage(): + result = stage + return result \ No newline at end of file diff --git a/screens.py b/screens.py index 9bf9c17..cf91f93 100644 --- a/screens.py +++ b/screens.py @@ -475,8 +475,8 @@ class DashboardScreen(Screen): Label("选择待学习或待修改的记忆单元集:", classes="title-label"), ListView(id="file-list", classes="file-list-view"), #Button("新建空的单元集", id="new_nucleon_button"), - Button("预缓存所有音频", id="precache_all_button", variant="success"), - Label(f"\"潜进\" 开放源代码软件项目 | 版本 {metadata.ver} {metadata.stage.capitalize()} | Wang Zhiyu 2025"), + Button("音频预缓存实用程序", id="precache_all_button"), + Label(f"\"潜进\" 开放源代码软件项目 | 版本 {metadata.ver} {metadata.get_stage()} | Wang Zhiyu 2025"), ) yield Footer()