Merge pull request #4710 from benjiwheeler/only-autosave-if-changed
Share, See-project-page buttons will only save if project has changed
This commit is contained in:
1 file changed
+1
-1
@@ -194,7 +194,7 @@ class MenuBar extends React.Component {
|
||||
this.props.onRequestCloseFile();
|
||||
}
|
||||
handleClickSeeCommunity (waitForUpdate) {
|
||||
if (this.props.canSave) { // save before transitioning to project page
|
||||
if (this.props.canSave && this.props.projectChanged) { // save before transitioning to project page
|
||||
this.props.autoUpdateProject();
|
||||
waitForUpdate(true); // queue the transition to project page
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user