diff --git a/build_app.spec b/build_app.spec index ca26bff..b8734c6 100644 --- a/build_app.spec +++ b/build_app.spec @@ -3,7 +3,7 @@ # 本文件用于打包 MacOS 应用 # pyinstaller --clean --noconfirm build_app.spec -version = '0.6.10' +version = '0.6.11' block_cipher = None diff --git a/lanzou/gui/__init__.py b/lanzou/gui/__init__.py index ff5091b..1e82f0f 100644 --- a/lanzou/gui/__init__.py +++ b/lanzou/gui/__init__.py @@ -1 +1 @@ -version = '0.6.10' +version = '0.6.11' diff --git a/lanzou/gui/dialogs/info.py b/lanzou/gui/dialogs/info.py index 853b4e5..1a17cfe 100644 --- a/lanzou/gui/dialogs/info.py +++ b/lanzou/gui/dialogs/info.py @@ -28,6 +28,7 @@ def update_ui(self): self.lb_name.setText("文件名:") self.lb_desc.setText("文件描述:") self.tx_dl_link.setText("") # 清空旧的信息 + self.tx_short.setText("") # 清空旧的信息 self.lb_dl_link.setVisible(True) self.tx_dl_link.setVisible(True) else: @@ -96,13 +97,15 @@ def call_get_short_url(self): if self._short_link_flag: self._short_link_flag = False self.tx_short.setPlaceholderText("后台获取中,请稍候!") - url = self.tx_share_url.text() + url = self.tx_dl_link.toPlainText() + if not url: + url = self.tx_share_url.text() + print(url) from lanzou.api.extra import get_short_url - short_url = get_short_url(url) if short_url: self.tx_short.setText(short_url) - self.tx_short.setPlaceholderText("") + self.tx_short.setPlaceholderText("单击获取") self._short_link_flag = True else: self.tx_short.setText("")