mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-22 07:30:24 +00:00
Fix possible browser freeze
This commit is contained in:
parent
ee78d152c5
commit
cb7ecd26af
1 changed files with 6 additions and 0 deletions
|
@ -9,6 +9,12 @@ public interface ApplicationPathAction extends BrowserAction {
|
||||||
|
|
||||||
String getExecutable();
|
String getExecutable();
|
||||||
|
|
||||||
|
@Override
|
||||||
|
default void init(OpenFileSystemModel model) throws Exception {
|
||||||
|
// Cache result for later calls
|
||||||
|
model.getCache().isApplicationInPath(getExecutable());
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
default boolean isActive(OpenFileSystemModel model, List<BrowserEntry> entries) {
|
default boolean isActive(OpenFileSystemModel model, List<BrowserEntry> entries) {
|
||||||
return model.getCache().isApplicationInPath(getExecutable());
|
return model.getCache().isApplicationInPath(getExecutable());
|
||||||
|
|
Loading…
Reference in a new issue