|
@@ -16,6 +16,7 @@ import org.cryptomator.ui.common.FxController;
|
|
|
import org.cryptomator.ui.common.FxControllerKey;
|
|
|
import org.cryptomator.ui.common.FxmlFile;
|
|
|
import org.cryptomator.ui.common.FxmlScene;
|
|
|
+import org.cryptomator.ui.mainwindow.MainWindow;
|
|
|
|
|
|
import javax.inject.Named;
|
|
|
import javax.inject.Provider;
|
|
@@ -36,11 +37,12 @@ abstract class RemoveVaultModule {
|
|
|
@Provides
|
|
|
@RemoveVault
|
|
|
@RemoveVaultScoped
|
|
|
- static Stage provideStage(ResourceBundle resourceBundle, @Named("windowIcon") Optional<Image> windowIcon) {
|
|
|
+ static Stage provideStage(@MainWindow Stage owner, ResourceBundle resourceBundle, @Named("windowIcon") Optional<Image> windowIcon) {
|
|
|
Stage stage = new Stage();
|
|
|
stage.setTitle(resourceBundle.getString("removeVault.title"));
|
|
|
stage.setResizable(false);
|
|
|
- stage.initModality(Modality.APPLICATION_MODAL);
|
|
|
+ stage.initModality(Modality.WINDOW_MODAL);
|
|
|
+ stage.initOwner(owner);
|
|
|
windowIcon.ifPresent(stage.getIcons()::add);
|
|
|
return stage;
|
|
|
}
|