Skip to content

Commit

Permalink
refactor for cleaner open file
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Harrington committed Apr 11, 2024
1 parent 5193b3b commit 0551ef1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ private void load(ScriptingWidgetType type, File currentFile) {
Button openFile = new Button("Open");
openFile.setGraphic(AssetFactory.loadIcon("Folder.png"));
openFile.setMinWidth(85);
openFile.setTooltip(new Tooltip("Click here to open the file in the OS browser"));
openFile.setOnAction(event -> {
new Thread(() -> {
Desktop desktop = Desktop.getDesktop();
Expand Down Expand Up @@ -216,7 +217,6 @@ private void load(ScriptingWidgetType type, File currentFile) {
tooltip.setText("\nMake a print bed and export all of the parts on the screen\n" + "to manufacturing. STL and SVG\n");
printbed.setTooltip(tooltip);

openFile.setTooltip(new Tooltip("Click here to open the file in the OS browser"));
controlPane.getChildren().add(runfx);
if (isOwnedByLoggedInUser) {
controlPane.getChildren().add(arrange);
Expand Down

0 comments on commit 0551ef1

Please sign in to comment.