Skip to content
Permalink
Browse files

Fix REPL bug when switching to freshly opened projects

Change-Id: If71bbaee9000dc6332d1452cb02be63a1c3402e2
  • Loading branch information...
ewpatton authored and jisqyv committed Aug 20, 2019
1 parent 83b7908 commit f1214cbe42289cba209cb1c3ebd8a837d70ca14a
@@ -416,6 +416,7 @@ private boolean switchToProject(long projectId, String projectName) {
screen.screenName, new SwitchScreenAction(projectId, screen.screenName)));
}
projectNameLabel.setText(projectName);
YaBlocksEditor.resendAssetsAndExtensions(); // Send assets for active project
} else {
ErrorReporter.reportError("Design toolbar doesn't know about project " + projectName +
" with id " + projectId);
@@ -698,7 +698,9 @@ public void makeActiveWorkspace() {
}

public static native void resendAssetsAndExtensions()/*-{
if (top.ReplState && top.ReplState.state == Blockly.ReplMgr.rsState.CONNECTED) {
if (top.ReplState && (top.ReplState.state == Blockly.ReplMgr.rsState.CONNECTED ||
top.ReplState.state == Blockly.ReplMgr.rsState.EXTENSIONS ||
top.ReplState.state == Blockly.ReplMgr.rsState.ASSET)) {
Blockly.ReplMgr.resendAssetsAndExtensions();
}
}-*/;

0 comments on commit f1214cb

Please sign in to comment.
You can’t perform that action at this time.