mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-06-22 14:29:18 -04:00
Small fixes
This commit is contained in:
@@ -73,6 +73,8 @@ public class BrowserComp extends SimpleComp {
|
||||
model.getOpenFileSystems(),
|
||||
model.getSelected())))
|
||||
.createRegion();
|
||||
localDownloadStage.setPrefHeight(200);
|
||||
localDownloadStage.setMaxHeight(200);
|
||||
var vertical = new VBox(bookmarksList, localDownloadStage);
|
||||
vertical.setFillWidth(true);
|
||||
|
||||
|
||||
@@ -89,6 +89,7 @@ public class FileSystemHelper {
|
||||
public static FileSystem.FileEntry getLocal(Path file) throws Exception {
|
||||
if (localFileSystem == null) {
|
||||
localFileSystem = new LocalStore().createFileSystem();
|
||||
localFileSystem.open();
|
||||
}
|
||||
|
||||
return new FileSystem.FileEntry(
|
||||
|
||||
@@ -42,6 +42,9 @@ public class OpenFileSystemComp extends SimpleComp {
|
||||
}
|
||||
|
||||
private Region createContent() {
|
||||
var overview = new Button(null, new FontIcon("mdi2m-monitor"));
|
||||
overview.setOnAction(e -> model.cd(null));
|
||||
|
||||
var backBtn = new Button(null, new FontIcon("fth-arrow-left"));
|
||||
backBtn.setOnAction(e -> model.back());
|
||||
backBtn.disableProperty().bind(model.getHistory().canGoBackProperty().not());
|
||||
@@ -70,6 +73,7 @@ public class OpenFileSystemComp extends SimpleComp {
|
||||
var topBar = new ToolBar();
|
||||
topBar.getItems()
|
||||
.setAll(
|
||||
overview,
|
||||
backBtn,
|
||||
forthBtn,
|
||||
new Spacer(10),
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
package io.xpipe.app.test;
|
||||
|
||||
import io.xpipe.app.core.AppProperties;
|
||||
import io.xpipe.app.ext.XPipeServiceProviders;
|
||||
import io.xpipe.core.util.JacksonMapper;
|
||||
import io.xpipe.app.util.XPipeSession;
|
||||
import io.xpipe.core.util.JacksonMapper;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
|
||||
import java.util.UUID;
|
||||
@@ -13,6 +14,7 @@ public class LocalExtensionTest extends ExtensionTest {
|
||||
public static void setup() throws Exception {
|
||||
JacksonMapper.initModularized(ModuleLayer.boot());
|
||||
XPipeServiceProviders.load(ModuleLayer.boot());
|
||||
AppProperties.init();
|
||||
XPipeSession.init(UUID.randomUUID());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user