mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-11-04 21:36:45 +00:00
rearrange recent files list when tabs are moved left or right
This commit is contained in:
parent
f980516462
commit
c9d6bb350d
1 changed files with 2 additions and 0 deletions
|
@ -1856,6 +1856,7 @@ public class AppController implements Initializable {
|
||||||
tabs.getTabs().add(index + 1, tab);
|
tabs.getTabs().add(index + 1, tab);
|
||||||
tabs.getTabs().addListener(tabsChangeListener);
|
tabs.getTabs().addListener(tabsChangeListener);
|
||||||
tabs.getSelectionModel().select(tab);
|
tabs.getSelectionModel().select(tab);
|
||||||
|
EventManager.get().post(new RequestOpenWalletsEvent()); //Rearrange recent files list
|
||||||
});
|
});
|
||||||
MenuItem moveLeft = new MenuItem("Move Left");
|
MenuItem moveLeft = new MenuItem("Move Left");
|
||||||
moveLeft.setOnAction(event -> {
|
moveLeft.setOnAction(event -> {
|
||||||
|
@ -1865,6 +1866,7 @@ public class AppController implements Initializable {
|
||||||
tabs.getTabs().add(index - 1, tab);
|
tabs.getTabs().add(index - 1, tab);
|
||||||
tabs.getTabs().addListener(tabsChangeListener);
|
tabs.getTabs().addListener(tabsChangeListener);
|
||||||
tabs.getSelectionModel().select(tab);
|
tabs.getSelectionModel().select(tab);
|
||||||
|
EventManager.get().post(new RequestOpenWalletsEvent()); //Rearrange recent files list
|
||||||
});
|
});
|
||||||
contextMenu.getItems().addAll(moveRight, moveLeft);
|
contextMenu.getItems().addAll(moveRight, moveLeft);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue