mirror of
https://github.com/xpipe-io/xpipe.git
synced 2025-04-17 09:43:37 +00:00
Fix scan closing
This commit is contained in:
parent
db7d840854
commit
9f5446e8cd
2 changed files with 8 additions and 0 deletions
|
@ -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) {
|
||||
|
|
|
@ -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(() -> {
|
||||
|
|
Loading…
Add table
Reference in a new issue