删除新建成功时不提示。

This commit is contained in:
2026-02-02 21:28:25 +08:00
parent 5a659d4f01
commit e09cf859b8
2 changed files with 8 additions and 4 deletions

View File

@@ -15,6 +15,10 @@ variables:
RELEASENAME: "$PROJECT_NAME-v$PROJECT_VERSION" RELEASENAME: "$PROJECT_NAME-v$PROJECT_VERSION"
DESCRIPTION: | DESCRIPTION: |
# 优化
- 删除新建文件(夹)成功时不提示。
# 功能新增 # 功能新增
- 对照传输支持按照类型传输。 - 对照传输支持按照类型传输。

View File

@@ -569,7 +569,7 @@ void FileManager::OperNewFolder()
if (!isRemote_) { if (!isRemote_) {
QString ret = Util::NewDir(folder); QString ret = Util::NewDir(folder);
if (ret.isEmpty()) { if (ret.isEmpty()) {
QMessageBox::information(this, tr("提示"), tr("创建%1成功").arg(folder)); //QMessageBox::information(this, tr("提示"), tr("创建%1成功").arg(folder));
DirFileInfo nf; DirFileInfo nf;
nf.size = 0; nf.size = 0;
nf.type = Dir; nf.type = Dir;
@@ -609,7 +609,7 @@ void FileManager::OperNewFolder()
if (msg.msg == STR_NONE || !msg.msg.isEmpty()) { if (msg.msg == STR_NONE || !msg.msg.isEmpty()) {
QMessageBox::information(this, tr("提示"), QString(tr("新建失败=>%1")).arg(msg.msg)); QMessageBox::information(this, tr("提示"), QString(tr("新建失败=>%1")).arg(msg.msg));
} else { } else {
QMessageBox::information(this, tr("提示"), QString(tr("新建%1成功。")).arg(folder)); //QMessageBox::information(this, tr("提示"), QString(tr("新建%1成功。")).arg(folder));
DirFileInfo nf; DirFileInfo nf;
nf.size = 0; nf.size = 0;
nf.type = Dir; nf.type = Dir;
@@ -642,7 +642,7 @@ void FileManager::OperDelete()
if (!isRemote_) { if (!isRemote_) {
QString ret = Util::Delete(name); QString ret = Util::Delete(name);
if (ret.isEmpty()) { if (ret.isEmpty()) {
QMessageBox::information(this, tr("提示"), tr("删除成功")); //QMessageBox::information(this, tr("提示"), tr("删除成功"));
int row = datas[0]->row(); int row = datas[0]->row();
ui->tableWidget->removeRow(row); ui->tableWidget->removeRow(row);
} else { } else {
@@ -676,7 +676,7 @@ void FileManager::OperDelete()
if (msg.msg == STR_NONE || !msg.msg.isEmpty()) { if (msg.msg == STR_NONE || !msg.msg.isEmpty()) {
QMessageBox::information(this, tr("提示"), QString(tr("删除失败=>%1")).arg(msg.msg)); QMessageBox::information(this, tr("提示"), QString(tr("删除失败=>%1")).arg(msg.msg));
} else { } else {
QMessageBox::information(this, tr("提示"), QString(tr("删除成功。"))); //QMessageBox::information(this, tr("提示"), QString(tr("删除成功。")));
ui->tableWidget->removeRow(datas[0]->row()); ui->tableWidget->removeRow(datas[0]->row());
} }
} }