Skip to content

Commit

Permalink
fix: 修复文件打开后解压问题
Browse files Browse the repository at this point in the history
添加文件删除事件处理

Bug: https://pms.uniontech.com/bug-view-164443.html
Log: 修复部分已知问题
  • Loading branch information
pengfeixx authored and deepin-bot[bot] committed Apr 20, 2023
1 parent 5b148e0 commit 500681f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/source/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2265,6 +2265,19 @@ void MainWindow::watcherArchiveFile(const QString &strFullPath)
m_ePageID = PI_Home;
refreshPage();
});

connect(m_pFileWatcher, &DFileWatcher::fileDeleted, this, [ = ]() { //监控压缩包,重命名时提示
// 取消操作
slotCancel();

// 显示提示对话框
TipDialog dialog(this);
dialog.showDialog(tr("The archive was changed on the disk, please import it again."), tr("OK", "button"));

resetMainwindow();
m_ePageID = PI_Home;
refreshPage();
});
}

QJsonObject MainWindow::creatShorcutJson()
Expand Down

0 comments on commit 500681f

Please sign in to comment.