mirror of
https://github.com/JoeanAmier/XHS-Downloader.git
synced 2025-12-26 04:48:05 +08:00
修复已知问题
This commit is contained in:
parent
0d22a8f4c0
commit
eba43f2172
@ -1,6 +1,6 @@
|
|||||||
|
from asyncio import create_task
|
||||||
from webbrowser import open
|
from webbrowser import open
|
||||||
|
|
||||||
# from asyncio import sleep
|
|
||||||
from pyperclip import paste
|
from pyperclip import paste
|
||||||
from rich.text import Text
|
from rich.text import Text
|
||||||
from textual import on
|
from textual import on
|
||||||
@ -105,8 +105,8 @@ class Index(Screen):
|
|||||||
self.disclaimer = False
|
self.disclaimer = False
|
||||||
|
|
||||||
@on(Button.Pressed, "#deal")
|
@on(Button.Pressed, "#deal")
|
||||||
async def deal_button(self):
|
def deal_button(self):
|
||||||
await self.deal()
|
create_task(self.deal())
|
||||||
|
|
||||||
@on(Button.Pressed, "#reset")
|
@on(Button.Pressed, "#reset")
|
||||||
def reset_button(self):
|
def reset_button(self):
|
||||||
@ -118,8 +118,6 @@ class Index(Screen):
|
|||||||
|
|
||||||
@show_state
|
@show_state
|
||||||
async def deal(self):
|
async def deal(self):
|
||||||
# TODO: 处理过程中,进度条异常卡顿,待排查!
|
|
||||||
# await sleep(2)
|
|
||||||
if not self.url.value:
|
if not self.url.value:
|
||||||
self.tip.write(Text(self.prompt.invalid_link, style=WARNING))
|
self.tip.write(Text(self.prompt.invalid_link, style=WARNING))
|
||||||
return
|
return
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user