diff --git a/client/modules/IDE/components/Editor.js b/client/modules/IDE/components/Editor.js
index f62cb4a4..d08cfb77 100644
--- a/client/modules/IDE/components/Editor.js
+++ b/client/modules/IDE/components/Editor.js
@@ -68,11 +68,14 @@ class Editor extends React.Component {
this._cm.on('change', debounce(1000, () => {
this.props.setUnsavedChanges(true);
this.props.updateFileContent(this.props.file.name, this._cm.getValue());
- this.checkForInfiniteLoop((infiniteLoop, prevs) => {
- if (!infiniteLoop && prevs && this.props.autorefresh) {
- this.props.startRefreshSketch();
- }
- });
+ if (this.props.autorefresh && this.props.isPlaying) {
+ this.props.startRefreshSketch();
+ }
+ // this.checkForInfiniteLoop((infiniteLoop, prevs) => {
+ // if (!infiniteLoop && prevs && this.props.autorefresh) {
+ // this.props.startRefreshSketch();
+ // }
+ // });
}));
this._cm.on('keyup', () => {
diff --git a/client/modules/IDE/components/Toolbar.js b/client/modules/IDE/components/Toolbar.js
index 831edb34..4804c981 100644
--- a/client/modules/IDE/components/Toolbar.js
+++ b/client/modules/IDE/components/Toolbar.js
@@ -72,7 +72,7 @@ class Toolbar extends React.Component {
>