rearrange recent files list when tabs are moved left or right

This commit is contained in:
Craig Raw 2023-07-05 09:59:22 +02:00
parent f980516462
commit c9d6bb350d

View file

@ -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);