Skip to content

Commit

Permalink
fix: 优化保存后关闭提示
Browse files Browse the repository at this point in the history
优化保存后关闭提示

Bug: https://pms.uniontech.com/bug-view-269141.html
Log: 优化保存后关闭提示
  • Loading branch information
myk1343 authored and deepin-bot[bot] committed Sep 11, 2024
1 parent 53d5718 commit bef7ba1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/drawboard/drawboard/drawboard/context/pagecontext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,10 @@ bool PageContext::save(const QString &file)
if (page() != nullptr && page()->borad() != nullptr) {
QFileInfo info(filePath);
if ("ddf" == info.suffix().toLower()) {
d_PageContext()->_dirty = 0;
return page()->borad()->fileHander()->saveToDdf(this, filePath);
} else {
d_PageContext()->_dirty = 0;
return page()->borad()->fileHander()->saveToImage(this, filePath);
}
}
Expand Down

0 comments on commit bef7ba1

Please sign in to comment.