mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-05-29 16:11:03 +00:00
Prevent flickering when opening the same system in chooser
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user