mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-06-22 14:29:18 -04:00
Properly clean temp directory
This commit is contained in:
@@ -166,7 +166,12 @@ public class BrowserComp extends SimpleComp {
|
||||
model.getSelected().addListener((observable, oldValue, newValue) -> {
|
||||
PlatformThread.runLaterIfNeeded(() -> {
|
||||
var index = model.getOpenFileSystems().indexOf(newValue);
|
||||
var tab = index != -1 ? tabs.getTabs().get(index) : null;
|
||||
if (index == -1 || index >= tabs.getTabs().size()) {
|
||||
tabs.getSelectionModel().select(null);
|
||||
return;
|
||||
}
|
||||
|
||||
var tab = tabs.getTabs().get(index);
|
||||
tabs.getSelectionModel().select(tab);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user