Small fixes

This commit is contained in:
crschnick 2023-05-26 21:01:57 +00:00
parent 8d9b4c9d4e
commit 59d0706129
5 changed files with 11 additions and 2 deletions

View file

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

View file

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

View file

@ -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),

View file

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

View file

@ -37,7 +37,7 @@ public interface ShellControl extends ProcessControl {
String getSubTemporaryDirectory();
public void checkRunning() throws Exception;
public void checkRunning();
default CommandControl osascriptCommand(String script) {
return command(String.format(