mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-09-19 22:01:12 +00:00
Small fixes
This commit is contained in:
parent
8d9b4c9d4e
commit
59d0706129
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue