mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-04-20 01:26:52 -04:00
Merge branch 'feature/redesign-mainwindow' into feature/condensed-vault-list
This commit is contained in:
@@ -30,9 +30,7 @@ public class MainWindowSceneFactory extends DefaultSceneFactory {
|
||||
|
||||
@Override
|
||||
protected void setupDefaultAccelerators(Scene scene, Stage stage) {
|
||||
if (SystemUtils.IS_OS_WINDOWS) {
|
||||
scene.getAccelerators().put(ALT_F4, window::close);
|
||||
} else {
|
||||
if (!SystemUtils.IS_OS_WINDOWS) {
|
||||
scene.getAccelerators().put(SHORTCUT_W, window::close);
|
||||
}
|
||||
scene.getAccelerators().put(SHORTCUT_N, vaultListController.get()::didClickAddNewVault);
|
||||
|
||||
@@ -36,7 +36,6 @@ import javafx.scene.input.MouseEvent;
|
||||
import javafx.scene.input.TransferMode;
|
||||
import javafx.scene.layout.HBox;
|
||||
import javafx.scene.layout.StackPane;
|
||||
import javafx.scene.layout.VBox;
|
||||
import javafx.stage.Stage;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
@@ -75,9 +74,9 @@ public class VaultListController implements FxController {
|
||||
private final BooleanBinding useCondensedMode;
|
||||
|
||||
public ListView<Vault> vaultList;
|
||||
public VBox vbox;
|
||||
public StackPane root;
|
||||
public HBox addVaultButton;
|
||||
@FXML
|
||||
private HBox addVaultButton;
|
||||
@FXML
|
||||
private ContextMenu addVaultContextMenu;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user