mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2025-01-27 02:41:10 +00:00
update javafx to 23.0.1
This commit is contained in:
parent
ee5015f0d5
commit
25f441a6a8
2 changed files with 3 additions and 3 deletions
|
@ -48,7 +48,7 @@ tasks.withType(AbstractArchiveTask) {
|
||||||
}
|
}
|
||||||
|
|
||||||
javafx {
|
javafx {
|
||||||
version = headless ? "18" : "22"
|
version = headless ? "18" : "23.0.1"
|
||||||
modules = [ 'javafx.controls', 'javafx.fxml', 'javafx.swing', 'javafx.graphics' ]
|
modules = [ 'javafx.controls', 'javafx.fxml', 'javafx.swing', 'javafx.graphics' ]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -274,7 +274,7 @@ public class AppController implements Initializable {
|
||||||
}
|
}
|
||||||
|
|
||||||
void initializeView() {
|
void initializeView() {
|
||||||
setPlatformApplicationMenu();
|
Platform.runLater(this::setPlatformApplicationMenu);
|
||||||
|
|
||||||
rootStack.getScene().getWindow().setOnHiding(windowEvent -> {
|
rootStack.getScene().getWindow().setOnHiding(windowEvent -> {
|
||||||
if(searchWalletDialog != null && searchWalletDialog.isShowing()) {
|
if(searchWalletDialog != null && searchWalletDialog.isShowing()) {
|
||||||
|
@ -450,7 +450,7 @@ public class AppController implements Initializable {
|
||||||
OsType osType = OsType.getCurrent();
|
OsType osType = OsType.getCurrent();
|
||||||
if(osType == OsType.MACOS) {
|
if(osType == OsType.MACOS) {
|
||||||
MenuToolkit tk = MenuToolkit.toolkit();
|
MenuToolkit tk = MenuToolkit.toolkit();
|
||||||
MenuItem preferences = new MenuItem("Preferences...");
|
MenuItem preferences = new MenuItem("Settings...");
|
||||||
preferences.setOnAction(this::openPreferences);
|
preferences.setOnAction(this::openPreferences);
|
||||||
preferences.setAccelerator(new KeyCodeCombination(KeyCode.COMMA, KeyCombination.META_DOWN));
|
preferences.setAccelerator(new KeyCodeCombination(KeyCode.COMMA, KeyCombination.META_DOWN));
|
||||||
Menu defaultApplicationMenu = new Menu("Apple", null, tk.createAboutMenuItem(SparrowWallet.APP_NAME, getAboutStage()), new SeparatorMenuItem(),
|
Menu defaultApplicationMenu = new Menu("Apple", null, tk.createAboutMenuItem(SparrowWallet.APP_NAME, getAboutStage()), new SeparatorMenuItem(),
|
||||||
|
|
Loading…
Reference in a new issue