do not switch to readonly after saving (#223)

This commit is contained in:
Red J Adaya 2024-08-15 05:38:21 +08:00 committed by GitHub
parent 688ed8a870
commit 5b686d6534
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -245,7 +245,6 @@ export class PreviewModel implements ViewModel {
const newFileContent = globalStore.get(this.newFileContent);
try {
services.FileService.SaveFile(fileName, util.stringToBase64(newFileContent));
this.toggleCodeEditorReadOnly(true);
} catch (error) {
console.error("Error saving file:", error);
}