mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-01-02 18:39:05 +01:00
do not switch to readonly after saving (#223)
This commit is contained in:
parent
688ed8a870
commit
5b686d6534
@ -245,7 +245,6 @@ export class PreviewModel implements ViewModel {
|
|||||||
const newFileContent = globalStore.get(this.newFileContent);
|
const newFileContent = globalStore.get(this.newFileContent);
|
||||||
try {
|
try {
|
||||||
services.FileService.SaveFile(fileName, util.stringToBase64(newFileContent));
|
services.FileService.SaveFile(fileName, util.stringToBase64(newFileContent));
|
||||||
this.toggleCodeEditorReadOnly(true);
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Error saving file:", error);
|
console.error("Error saving file:", error);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user