Fix possible browser freeze

This commit is contained in:
crschnick 2024-08-15 10:34:58 +00:00
parent ee78d152c5
commit cb7ecd26af

View file

@ -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());