mirror of
https://github.com/LC044/WeChatMsg
synced 2025-02-22 10:52:18 +08:00
修复批量导出选择后无效的问题
This commit is contained in:
parent
117f811d13
commit
f5ca91cc31
@ -56,6 +56,7 @@ class ContactQListWidgetItem(QListWidgetItem):
|
|||||||
# 设置布局用来对nameLabel和avatorLabel进行布局
|
# 设置布局用来对nameLabel和avatorLabel进行布局
|
||||||
hbox = QHBoxLayout()
|
hbox = QHBoxLayout()
|
||||||
self.checkBox = QCheckBox()
|
self.checkBox = QCheckBox()
|
||||||
|
self.checkBox.clicked.connect(self.select)
|
||||||
hbox.addWidget(self.checkBox)
|
hbox.addWidget(self.checkBox)
|
||||||
hbox.addWidget(self.avatorLabel)
|
hbox.addWidget(self.avatorLabel)
|
||||||
hbox.addWidget(self.nameLabel)
|
hbox.addWidget(self.nameLabel)
|
||||||
@ -76,6 +77,7 @@ class ContactQListWidgetItem(QListWidgetItem):
|
|||||||
# print('选择',self.is_select)
|
# print('选择',self.is_select)
|
||||||
self.checkBox.setChecked(self.is_select)
|
self.checkBox.setChecked(self.is_select)
|
||||||
# self.widget.setStyleSheet(Stylesheet_clicked)
|
# self.widget.setStyleSheet(Stylesheet_clicked)
|
||||||
|
|
||||||
def force_select(self):
|
def force_select(self):
|
||||||
self.is_select = True
|
self.is_select = True
|
||||||
self.checkBox.setChecked(self.is_select)
|
self.checkBox.setChecked(self.is_select)
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
"""
|
"""
|
||||||
import json
|
import json
|
||||||
import os.path
|
import os.path
|
||||||
|
import traceback
|
||||||
|
|
||||||
from PyQt5.QtCore import pyqtSignal, QUrl, Qt, QThread, QSize
|
from PyQt5.QtCore import pyqtSignal, QUrl, Qt, QThread, QSize
|
||||||
from PyQt5.QtGui import QPixmap, QFont, QDesktopServices, QIcon
|
from PyQt5.QtGui import QPixmap, QFont, QDesktopServices, QIcon
|
||||||
@ -24,6 +25,7 @@ from .menu.export import ExportDialog
|
|||||||
from .tool.tool_window import ToolWindow
|
from .tool.tool_window import ToolWindow
|
||||||
from ..DataBase.output_pc import Output
|
from ..DataBase.output_pc import Output
|
||||||
from ..components.QCursorGif import QCursorGif
|
from ..components.QCursorGif import QCursorGif
|
||||||
|
from ..log import logger
|
||||||
from ..person import Me
|
from ..person import Me
|
||||||
|
|
||||||
# 美化样式表
|
# 美化样式表
|
||||||
@ -207,6 +209,7 @@ class MainWinController(QMainWindow, mainwindow.Ui_MainWindow, QCursorGif):
|
|||||||
img_bytes = misc_db.get_avatar_buffer(wxid)
|
img_bytes = misc_db.get_avatar_buffer(wxid)
|
||||||
except:
|
except:
|
||||||
close_db()
|
close_db()
|
||||||
|
logger.error(f'数据库错误:\n{traceback.format_exc()}')
|
||||||
QMessageBox.critical(self, "数据库错误", "请重启微信后重试")
|
QMessageBox.critical(self, "数据库错误", "请重启微信后重试")
|
||||||
import shutil
|
import shutil
|
||||||
shutil.rmtree('./app/Database/Msg')
|
shutil.rmtree('./app/Database/Msg')
|
||||||
|
@ -61,7 +61,7 @@ class DecryptControl(QWidget, decryptUi.Ui_Dialog, QCursorGif):
|
|||||||
if result[0] == -1:
|
if result[0] == -1:
|
||||||
QMessageBox.critical(self, "错误", "请登录微信")
|
QMessageBox.critical(self, "错误", "请登录微信")
|
||||||
elif result[0] == -2:
|
elif result[0] == -2:
|
||||||
QMessageBox.critical(self, "错误", "微信版本不匹配\n请更新微信版本为:3.9.8.25")
|
QMessageBox.critical(self, "错误", "微信版本不匹配\n请更新微信版本为:3.9.9.27(去微信官网下载)")
|
||||||
elif result[0] == -3:
|
elif result[0] == -3:
|
||||||
QMessageBox.critical(self, "错误", "WeChat WeChatWin.dll Not Found")
|
QMessageBox.critical(self, "错误", "WeChat WeChatWin.dll Not Found")
|
||||||
elif result[0] == -10086:
|
elif result[0] == -10086:
|
||||||
|
Loading…
Reference in New Issue
Block a user