Skip to content

Commit 5c1d3e3

Browse files
authored
Merge pull request scratchfoundation#4710 from benjiwheeler/only-autosave-if-changed
Share, See-project-page buttons will only save if project has changed
2 parents f8243ea + 881e17d commit 5c1d3e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/menu-bar/menu-bar.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ class MenuBar extends React.Component {
194194
this.props.onRequestCloseFile();
195195
}
196196
handleClickSeeCommunity (waitForUpdate) {
197-
if (this.props.canSave) { // save before transitioning to project page
197+
if (this.props.canSave && this.props.projectChanged) { // save before transitioning to project page
198198
this.props.autoUpdateProject();
199199
waitForUpdate(true); // queue the transition to project page
200200
} else {

0 commit comments

Comments
 (0)