mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-22 15:40:23 +00:00
Prevent flickering when opening the same system in chooser
This commit is contained in:
parent
d155dcdeb2
commit
d77925540e
1 changed files with 6 additions and 0 deletions
|
@ -81,6 +81,12 @@ public class BrowserChooserComp extends SimpleComp {
|
||||||
return;
|
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) {
|
if (entry.getStore() instanceof ShellStore fileSystem) {
|
||||||
model.openFileSystemAsync(entry.ref(), null, busy);
|
model.openFileSystemAsync(entry.ref(), null, busy);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue