mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-21 23:20:23 +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();
|
||||
|
||||
@Override
|
||||
default void init(OpenFileSystemModel model) throws Exception {
|
||||
// Cache result for later calls
|
||||
model.getCache().isApplicationInPath(getExecutable());
|
||||
}
|
||||
|
||||
@Override
|
||||
default boolean isActive(OpenFileSystemModel model, List<BrowserEntry> entries) {
|
||||
return model.getCache().isApplicationInPath(getExecutable());
|
||||
|
|
Loading…
Reference in a new issue