Fix Cleaer Read-Only Flag command not working immediately regression

Fix #14138
This commit is contained in:
Don Ho 2023-09-12 17:44:19 +02:00
parent e30ee852d6
commit 01ff1eb881
1 changed files with 1 additions and 0 deletions

View File

@ -1995,6 +1995,7 @@ void Notepad_plus::command(int id)
{
Buffer * buf = _pEditView->getCurrentBuffer();
removeReadOnlyFlagFromFileAttributes(buf->getFullPathName());
buf->setFileReadOnly(false);
}
break;