Prevent flickering when opening the same system in chooser

This commit is contained in:
crschnick 2024-05-14 08:23:51 +00:00
parent d155dcdeb2
commit d77925540e

View file

@ -81,6 +81,12 @@ public class BrowserChooserComp extends SimpleComp {
return;
}
// Don't open same system again
var current = model.getSelectedEntry().getValue();
if (current != null && entry.ref().equals(current.getEntry())) {
return;
}
if (entry.getStore() instanceof ShellStore fileSystem) {
model.openFileSystemAsync(entry.ref(), null, busy);
}