From c9d6bb350d77b14c7fb68f9b24f7b9576370dd64 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Wed, 5 Jul 2023 09:59:22 +0200 Subject: [PATCH] rearrange recent files list when tabs are moved left or right --- src/main/java/com/sparrowwallet/sparrow/AppController.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/sparrowwallet/sparrow/AppController.java b/src/main/java/com/sparrowwallet/sparrow/AppController.java index 6b7d86f0..05e282ad 100644 --- a/src/main/java/com/sparrowwallet/sparrow/AppController.java +++ b/src/main/java/com/sparrowwallet/sparrow/AppController.java @@ -1856,6 +1856,7 @@ public class AppController implements Initializable { tabs.getTabs().add(index + 1, tab); tabs.getTabs().addListener(tabsChangeListener); tabs.getSelectionModel().select(tab); + EventManager.get().post(new RequestOpenWalletsEvent()); //Rearrange recent files list }); MenuItem moveLeft = new MenuItem("Move Left"); moveLeft.setOnAction(event -> { @@ -1865,6 +1866,7 @@ public class AppController implements Initializable { tabs.getTabs().add(index - 1, tab); tabs.getTabs().addListener(tabsChangeListener); tabs.getSelectionModel().select(tab); + EventManager.get().post(new RequestOpenWalletsEvent()); //Rearrange recent files list }); contextMenu.getItems().addAll(moveRight, moveLeft);