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