Fix dirname variable eval

This commit is contained in:
crschnick
2025-08-06 15:21:57 +00:00
parent 9383c76468
commit b4e6b68e0a
@@ -30,6 +30,7 @@ import javafx.beans.property.*;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.scene.control.SelectionMode;
import lombok.Getter;
import lombok.NonNull;
@@ -286,11 +287,15 @@ public final class BrowserFileSystemTabModel extends BrowserStoreSessionTab<File
// Evaluate optional expressions
String evaluatedPath;
try {
evaluatedPath = BrowserFileSystemHelper.evaluatePath(this, adjustedPath);
} catch (Exception ex) {
ErrorEventFactory.fromThrowable(ex).handle();
return Optional.ofNullable(cps);
if (customInput) {
try {
evaluatedPath = BrowserFileSystemHelper.evaluatePath(this, adjustedPath);
} catch (Exception ex) {
ErrorEventFactory.fromThrowable(ex).handle();
return Optional.ofNullable(cps);
}
} else {
evaluatedPath = adjustedPath;
}
if (evaluatedPath == null) {