mirror of
https://github.com/JoeanAmier/XHS-Downloader.git
synced 2026-03-22 06:57:16 +08:00
优化项目代码
This commit is contained in:
@@ -36,5 +36,5 @@ class XHSDownloader(App):
|
||||
async def action_settings(self):
|
||||
await self.push_screen("setting")
|
||||
|
||||
async def action_back(self):
|
||||
async def action_index(self):
|
||||
await self.push_screen("index")
|
||||
|
||||
@@ -15,7 +15,7 @@ class Setting(Screen):
|
||||
"static/css/setting.tcss")
|
||||
BINDINGS = [
|
||||
Binding(key="q", action="quit", description="退出程序"),
|
||||
Binding(key="b", action="back", description="返回首页"),
|
||||
Binding(key="b", action="index", description="返回首页"),
|
||||
]
|
||||
|
||||
def compose(self) -> ComposeResult:
|
||||
|
||||
Reference in New Issue
Block a user