Various small fixes

This commit is contained in:
crschnick
2026-01-05 12:03:27 +00:00
parent df2eb40599
commit f5075d01ac
4 changed files with 7 additions and 3 deletions

View File

@@ -237,6 +237,10 @@ public class BrowserFileListCompEntry {
var target = item != null && item.getRawFileEntry().resolved().getKind() == FileKind.DIRECTORY
? item.getRawFileEntry().resolved()
: model.getFileSystemModel().getCurrentDirectory();
// We could already have changed the current dir
if (target == null) {
return;
}
model.getFileSystemModel()
.dropFilesIntoAsync(
target,

View File

@@ -36,7 +36,7 @@ public class AppCache {
try {
FileUtils.cleanDirectory(getBasePath().toFile());
} catch (IOException e) {
ErrorEventFactory.fromThrowable(e).handle();
ErrorEventFactory.fromThrowable(e).expected().handle();
}
}

View File

@@ -134,7 +134,7 @@ public abstract class StoreEntryComp extends SimpleComp {
button.setGraphic(r);
button.getStyleClass().add("store-entry-comp");
button.setPadding(Insets.EMPTY);
button.setMaxWidth(5000);
button.setMaxWidth(10000);
button.setFocusTraversable(true);
CompDescriptor.builder()
.name(getWrapper().getShownName())

View File

@@ -45,7 +45,7 @@ public class StoreSectionMiniComp extends StoreSectionBaseComp {
action.accept(section);
});
root.hgrow();
root.maxWidth(2000);
root.maxWidth(10000);
root.styleClass("item");
root.apply(struc -> {
struc.get().setAlignment(Pos.CENTER_LEFT);