This commit is contained in:
crschnick 2024-05-01 19:00:00 +00:00
parent 568d1c2e6f
commit e5c2079264
2 changed files with 5 additions and 1 deletions

View file

@ -65,6 +65,10 @@ public class BrowserQuickAccessContextMenu extends ContextMenu {
getItems().clear();
ThreadHelper.runFailableAsync(() -> {
var entry = base.get();
if (entry == null) {
return;
}
if (entry.getRawFileEntry().resolved().getKind() != FileKind.DIRECTORY) {
return;
}

View file

@ -37,7 +37,7 @@ public class EditFileAction implements LeafAction {
@Override
public ObservableValue<String> getName(OpenFileSystemModel model, List<BrowserEntry> entries) {
var e = AppPrefs.get().externalEditor().getValue();
return AppI18n.observable("editWithEditor", e.toTranslatedString().getValue());
return AppI18n.observable("editWithEditor", e != null ? e.toTranslatedString().getValue() : "?");
}
@Override