- change: New file created by file template is set as unmodified by default.

This commit is contained in:
Roy Qu 2023-08-09 23:01:53 +08:00
parent 7104089e66
commit 62f7c0a495
2 changed files with 2 additions and 1 deletions

View File

@ -21,6 +21,7 @@ Red Panda C++ Version 2.24
- change: Git support is disabled in the distributed buildings. - change: Git support is disabled in the distributed buildings.
- fix: Wrong code suggestion while inputing numbers in assembly files. - fix: Wrong code suggestion while inputing numbers in assembly files.
- fix: Defines in all files are wrongly cleared when reparsing. - fix: Defines in all files are wrongly cleared when reparsing.
- change: New file created by file template is set as unmodified by default.
Red Panda C++ Version 2.23 Red Panda C++ Version 2.23

View File

@ -182,7 +182,7 @@ Editor::Editor(QWidget *parent, const QString& filename,
if (!fileTemplate.isEmpty()) { if (!fileTemplate.isEmpty()) {
insertCodeSnippet(fileTemplate); insertCodeSnippet(fileTemplate);
setCaretPosition(1,1); setCaretPosition(1,1);
mCanAutoSave = true; setModified(false);
} }
} }
if (!isNew && parentPageControl) { if (!isNew && parentPageControl) {