Fix scan closing

This commit is contained in:
crschnick 2024-09-28 10:04:46 +00:00
parent db7d840854
commit 9f5446e8cd
2 changed files with 8 additions and 0 deletions

View file

@ -68,6 +68,7 @@ public class StoreIconChoiceComp extends SimpleComp {
table.setColumnResizePolicy(TableView.CONSTRAINED_RESIZE_POLICY_ALL_COLUMNS);
table.getSelectionModel().setCellSelectionEnabled(true);
table.getStyleClass().add("icon-browser");
table.setPlaceholder(new Region());
}
private void updateData(TableView<List<SystemIcon>> table, String filterString) {

View file

@ -166,6 +166,13 @@ class ScanDialog extends DialogComp {
shellValidationContext = new ShellValidationContext(
newValue.getStore().control().withoutLicenseCheck().start());
// Handle window close while connection is established
if (!window.isShowing()) {
discard();
return;
}
var a = applicable.apply(entry.get().get(), shellValidationContext.get());
Platform.runLater(() -> {