Skip to content

Commit 81a2f12

Browse files
fix: Disabled mnemonic parsing on RecentDocumentsButton instances on welcome page in oder to have correct file name rendering for filenames with underscores. (gluonhq#578)
Co-authored-by: Oliver-Loeffler <Oliver-Loeffler@users.noreply.github.com>
1 parent 6e7e18e commit 81a2f12

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/src/main/java/com/oracle/javafx/scenebuilder/app/welcomedialog/WelcomeDialogWindowController.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,8 @@ private void loadAndPopulateRecentItemsInBackground() {
154154
recentDocument.setAlignment(Pos.BASELINE_LEFT);
155155
recentDocument.setOnAction(event -> fireOpenRecentProject(event, recentItem));
156156
recentDocument.setTooltip(new Tooltip(recentItem));
157-
157+
/* if MnemonicParsing is enabled, file names with underscores are displayed incorrectly */
158+
recentDocument.setMnemonicParsing(false);
158159
recentDocumentButtons.add(recentDocument);
159160
}
160161

0 commit comments

Comments
 (0)