private void refreshList() {
		FxThreadUtil.run(() -> {
			menuScripts.getItems().clear();
			if (hasScripts.getValue()) {
				for (ScriptFile scriptFile : new TreeSet<>(scriptFiles)) {
					menuScripts.getItems().add(actionLiteral(scriptFile.name(), CarbonIcons.PLAY_FILLED,
							() -> scriptFile.execute(engine)));
				}
			} else {
				MenuItem item = new MenuItem();
				item.setGraphic(new FontIconView(CarbonIcons.SEARCH));
				item.textProperty().bind(getBinding("menu.scripting.none-found"));
				item.setDisable(true);
				menuScripts.getItems().add(item);
			}
		});
	}
Update the items in the scripts menu.
recaf-ui/src/main/java/software/coley/recaf/ui/menubar/ScriptMenu.java