Skip to content

Commit

Permalink
修复批量导出选择后无效的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
LC044 committed Jan 15, 2024
1 parent 117f811 commit f5ca91c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/components/export_contact_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ def __init__(self, name, url, img_bytes=None):
# 设置布局用来对nameLabel和avatorLabel进行布局
hbox = QHBoxLayout()
self.checkBox = QCheckBox()
self.checkBox.clicked.connect(self.select)
hbox.addWidget(self.checkBox)
hbox.addWidget(self.avatorLabel)
hbox.addWidget(self.nameLabel)
Expand All @@ -76,6 +77,7 @@ def select(self):
# print('选择',self.is_select)
self.checkBox.setChecked(self.is_select)
# self.widget.setStyleSheet(Stylesheet_clicked)

def force_select(self):
self.is_select = True
self.checkBox.setChecked(self.is_select)
Expand Down
3 changes: 3 additions & 0 deletions app/ui/mainview.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"""
import json
import os.path
import traceback

from PyQt5.QtCore import pyqtSignal, QUrl, Qt, QThread, QSize
from PyQt5.QtGui import QPixmap, QFont, QDesktopServices, QIcon
Expand All @@ -24,6 +25,7 @@
from .tool.tool_window import ToolWindow
from ..DataBase.output_pc import Output
from ..components.QCursorGif import QCursorGif
from ..log import logger
from ..person import Me

# 美化样式表
Expand Down Expand Up @@ -207,6 +209,7 @@ def set_my_info(self, wxid):
img_bytes = misc_db.get_avatar_buffer(wxid)
except:
close_db()
logger.error(f'数据库错误:\n{traceback.format_exc()}')
QMessageBox.critical(self, "数据库错误", "请重启微信后重试")
import shutil
shutil.rmtree('./app/Database/Msg')
Expand Down
2 changes: 1 addition & 1 deletion app/ui/tool/pc_decrypt/pc_decrypt.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def set_info(self, result):
if result[0] == -1:
QMessageBox.critical(self, "错误", "请登录微信")
elif result[0] == -2:
QMessageBox.critical(self, "错误", "微信版本不匹配\n请更新微信版本为:3.9.8.25")
QMessageBox.critical(self, "错误", "微信版本不匹配\n请更新微信版本为:3.9.9.27(去微信官网下载)")
elif result[0] == -3:
QMessageBox.critical(self, "错误", "WeChat WeChatWin.dll Not Found")
elif result[0] == -10086:
Expand Down

0 comments on commit f5ca91c

Please sign in to comment.