mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-05-30 09:41:08 +08:00
fix(update): 统一忽略更新配置到用户目录
This commit is contained in:
@@ -324,7 +324,8 @@ bool AppDelegate::editorEvent(QEvent *event, QAbstractItemModel *model,
|
||||
QRect unignoreButtonRect(option.rect.right() - 80, option.rect.top() + (option.rect.height() - 30) / 2, 70, 30);
|
||||
if (unignoreButtonRect.contains(mouseEvent->pos())) {
|
||||
// 发送取消忽略信号
|
||||
emit unignoreApp(packageName);
|
||||
QString newVersion = index.data(Qt::UserRole + 3).toString();
|
||||
emit unignoreApp(packageName, newVersion);
|
||||
return true;
|
||||
}
|
||||
return true; // 消耗其他事件,不允许其他交互
|
||||
@@ -369,8 +370,8 @@ bool AppDelegate::editorEvent(QEvent *event, QAbstractItemModel *model,
|
||||
// 检查是否点击了忽略按钮
|
||||
QRect ignoreButtonRect(rect.right() - 160, rect.top() + (rect.height() - 30) / 2, 70, 30);
|
||||
if (ignoreButtonRect.contains(mouseEvent->pos())) {
|
||||
QString currentVersion = index.data(Qt::UserRole + 2).toString();
|
||||
emit ignoreApp(packageName, currentVersion);
|
||||
QString newVersion = index.data(Qt::UserRole + 3).toString();
|
||||
emit ignoreApp(packageName, newVersion);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -1026,4 +1027,4 @@ void AppDelegate::clearSelection() {
|
||||
// 实现获取下载状态信息的方法
|
||||
const QHash<QString, DownloadInfo>& AppDelegate::getDownloads() const {
|
||||
return m_downloads;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user