From 20ac5407f454dd6066d4d0c19a70e306c007cb99 Mon Sep 17 00:00:00 2001 From: Thomas Weber Date: Sun, 6 Dec 2020 19:08:32 -0600 Subject: [PATCH] Mark as unchanged after saving the file --- src/containers/tw-sb3-downloader-filesystem.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/containers/tw-sb3-downloader-filesystem.jsx b/src/containers/tw-sb3-downloader-filesystem.jsx index 67513f9e4..50f49ab15 100644 --- a/src/containers/tw-sb3-downloader-filesystem.jsx +++ b/src/containers/tw-sb3-downloader-filesystem.jsx @@ -50,9 +50,9 @@ class SB3DownloaderFileSystem extends React.Component { return this.saveAsNew(); } async saveToHandle (handle) { - this.props.onProjectUnchanged(); const content = await this.props.saveProjectSb3(); await FileSystemAPI.writeToHandle(handle, content); + this.props.onProjectUnchanged(); } handleSaveError (e) { if (e.name === 'AbortError') {