fix(ui): 修复密码显示按钮动画异常
This commit is contained in:
@@ -116,14 +116,13 @@ class MemberManager(QWidget):
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
self.tools.addSeparator()
|
self.tools.addSeparator()
|
||||||
self.tools.addAction(
|
self.key = Action(
|
||||||
Action(
|
FluentIcon.HIDE,
|
||||||
FluentIcon.HIDE,
|
"显示/隐藏密码",
|
||||||
"显示/隐藏密码",
|
checkable=True,
|
||||||
checkable=True,
|
triggered=self.show_password,
|
||||||
triggered=self.show_password,
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
|
self.tools.addAction(self.key)
|
||||||
|
|
||||||
layout.addWidget(self.tools)
|
layout.addWidget(self.tools)
|
||||||
layout.addWidget(self.member_manager)
|
layout.addWidget(self.member_manager)
|
||||||
|
|||||||
@@ -100,8 +100,6 @@ class DownloadProcess(QThread):
|
|||||||
self.url, headers=headers, timeout=10, stream=True
|
self.url, headers=headers, timeout=10, stream=True
|
||||||
)
|
)
|
||||||
|
|
||||||
print(self.download_path.suffix, response.status_code)
|
|
||||||
|
|
||||||
if response.status_code != 206:
|
if response.status_code != 206:
|
||||||
|
|
||||||
if self.check_times != -1:
|
if self.check_times != -1:
|
||||||
@@ -116,9 +114,6 @@ class DownloadProcess(QThread):
|
|||||||
for chunk in response.iter_content(chunk_size=8192):
|
for chunk in response.iter_content(chunk_size=8192):
|
||||||
|
|
||||||
if self.isInterruptionRequested():
|
if self.isInterruptionRequested():
|
||||||
print(
|
|
||||||
f"{self.download_path.suffix}: isInterruptionRequested"
|
|
||||||
)
|
|
||||||
break
|
break
|
||||||
|
|
||||||
f.write(chunk)
|
f.write(chunk)
|
||||||
@@ -145,9 +140,7 @@ class DownloadProcess(QThread):
|
|||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
print(
|
|
||||||
f"{self.download_path.suffix}: isInterruptionRequested---{self.check_times}/{self.isInterruptionRequested()}"
|
|
||||||
)
|
|
||||||
if self.download_path.exists():
|
if self.download_path.exists():
|
||||||
self.download_path.unlink()
|
self.download_path.unlink()
|
||||||
self.accomplish.emit(0)
|
self.accomplish.emit(0)
|
||||||
@@ -307,11 +300,8 @@ class DownloadManager(QDialog):
|
|||||||
|
|
||||||
def kill_speed_test(self, name: str) -> None:
|
def kill_speed_test(self, name: str) -> None:
|
||||||
|
|
||||||
print(f"time: {name}")
|
|
||||||
|
|
||||||
if name in self.download_process_dict:
|
if name in self.download_process_dict:
|
||||||
self.download_process_dict[name].requestInterruption()
|
self.download_process_dict[name].requestInterruption()
|
||||||
print(f"kill_speed_test: {name}")
|
|
||||||
|
|
||||||
def test_speed_task2(self, name: str, t: float) -> None:
|
def test_speed_task2(self, name: str, t: float) -> None:
|
||||||
|
|
||||||
@@ -347,8 +337,6 @@ class DownloadManager(QDialog):
|
|||||||
if not self.download_process_dict:
|
if not self.download_process_dict:
|
||||||
self.download_process_clear.emit()
|
self.download_process_clear.emit()
|
||||||
|
|
||||||
print(self.download_process_dict.keys())
|
|
||||||
|
|
||||||
if any(speed == -1 for _, speed in self.test_speed_result.items()):
|
if any(speed == -1 for _, speed in self.test_speed_result.items()):
|
||||||
return None
|
return None
|
||||||
|
|
||||||
@@ -510,7 +498,6 @@ class DownloadManager(QDialog):
|
|||||||
shell=True,
|
shell=True,
|
||||||
creationflags=subprocess.CREATE_NO_WINDOW,
|
creationflags=subprocess.CREATE_NO_WINDOW,
|
||||||
)
|
)
|
||||||
print(str(self.app_path / "AUTO_MAA.exe"))
|
|
||||||
elif not self.isInterruptionRequested and self.name == "MAA":
|
elif not self.isInterruptionRequested and self.name == "MAA":
|
||||||
subprocess.Popen(
|
subprocess.Popen(
|
||||||
str(self.app_path / "MAA.exe"),
|
str(self.app_path / "MAA.exe"),
|
||||||
@@ -538,7 +525,6 @@ class DownloadManager(QDialog):
|
|||||||
|
|
||||||
self.isInterruptionRequested = True
|
self.isInterruptionRequested = True
|
||||||
|
|
||||||
print(self.download_process_dict)
|
|
||||||
for process in self.download_process_dict.values():
|
for process in self.download_process_dict.values():
|
||||||
process.requestInterruption()
|
process.requestInterruption()
|
||||||
|
|
||||||
@@ -552,8 +538,6 @@ class DownloadManager(QDialog):
|
|||||||
|
|
||||||
self.requestInterruption()
|
self.requestInterruption()
|
||||||
|
|
||||||
print(self.download_process_dict)
|
|
||||||
|
|
||||||
event.accept()
|
event.accept()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"main_version": "4.2.5.2",
|
"main_version": "4.2.5.2",
|
||||||
"updater_version": "1.2.0.0",
|
"updater_version": "1.2.0.0",
|
||||||
"announcement": "\n## 新增功能\n- 屏蔽MuMu模拟器开屏广告功能上线\n- 更新器支持多线程下载\n## 修复BUG\n- 修复统计信息HTML模板公招匹配错误\n## 程序优化\n- 暂无",
|
"announcement": "\n## 新增功能\n- 屏蔽MuMu模拟器开屏广告功能上线\n- 更新器支持多线程下载\n## 修复BUG\n- 修复统计信息HTML模板公招匹配错误\n- 修复密码显示按钮动画异常\n## 程序优化\n- 暂无",
|
||||||
"proxy_list": [
|
"proxy_list": [
|
||||||
"",
|
"",
|
||||||
"https://gitproxy.click/",
|
"https://gitproxy.click/",
|
||||||
|
|||||||
Reference in New Issue
Block a user