Skip to content

Commit

Permalink
fix compiler error
Browse files Browse the repository at this point in the history
  • Loading branch information
csillaSolyomGecse committed Oct 13, 2021
1 parent ceb20ec commit 318252d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
Expand Up @@ -85,9 +85,8 @@ public void switchMode(int newMode) {
break;
}
if (embedManager != null
&& (newMode == EuclidianConstants.MODE_GRAPHING
|| newMode == EuclidianConstants.MODE_CAS)) {
setUpEmbedManager(embedManager, newMode);
&& newMode == EuclidianConstants.MODE_CALCULATOR) {
setUpEmbedManager(embedManager);
}

}
Expand All @@ -96,16 +95,18 @@ private DialogManager getDialogManager() {
return app.getDialogManager();
}

private void setUpEmbedManager(EmbedManager embedManager, int mode) {
private void setUpEmbedManager(EmbedManager embedManager) {
final GeoEmbed ge = new GeoEmbed(cons);
if (mode == EuclidianConstants.MODE_CAS) {
ge.setAppName("cas");
}
ge.setAppName("suite");
EuclidianView view = app.getActiveEuclidianView();
ge.initDefaultPosition(view);
embedManager.initAppEmbed(ge);
ge.setLabel(null);
app.storeUndoInfo();
app.invokeLater(() -> view.getEuclidianController().selectAndShowSelectionUI(ge));
app.invokeLater(() -> {
view.getEuclidianController().selectAndShowSelectionUI(ge);
ge.setBackground(false);
view.update(ge); // force painting in the foreground
});
}
}
Expand Up @@ -308,7 +308,7 @@ public static List<Integer> getNotesMediaToolBar(boolean includeGraspableMath,
if (includeH5P) {
tools.add(EuclidianConstants.MODE_H5P);
}
return tools
return tools;
}

/**
Expand Down

0 comments on commit 318252d

Please sign in to comment.