update javafx to 23.0.1

This commit is contained in:
Craig Raw 2025-01-13 10:22:54 +02:00
parent ee5015f0d5
commit 25f441a6a8
2 changed files with 3 additions and 3 deletions

View file

@ -48,7 +48,7 @@ tasks.withType(AbstractArchiveTask) {
}
javafx {
version = headless ? "18" : "22"
version = headless ? "18" : "23.0.1"
modules = [ 'javafx.controls', 'javafx.fxml', 'javafx.swing', 'javafx.graphics' ]
}

View file

@ -274,7 +274,7 @@ public class AppController implements Initializable {
}
void initializeView() {
setPlatformApplicationMenu();
Platform.runLater(this::setPlatformApplicationMenu);
rootStack.getScene().getWindow().setOnHiding(windowEvent -> {
if(searchWalletDialog != null && searchWalletDialog.isShowing()) {
@ -450,7 +450,7 @@ public class AppController implements Initializable {
OsType osType = OsType.getCurrent();
if(osType == OsType.MACOS) {
MenuToolkit tk = MenuToolkit.toolkit();
MenuItem preferences = new MenuItem("Preferences...");
MenuItem preferences = new MenuItem("Settings...");
preferences.setOnAction(this::openPreferences);
preferences.setAccelerator(new KeyCodeCombination(KeyCode.COMMA, KeyCombination.META_DOWN));
Menu defaultApplicationMenu = new Menu("Apple", null, tk.createAboutMenuItem(SparrowWallet.APP_NAME, getAboutStage()), new SeparatorMenuItem(),