mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-09-30 00:56:56 +13:00
Small fixes
This commit is contained in:
parent
8d9b4c9d4e
commit
59d0706129
5 changed files with 11 additions and 2 deletions
|
@ -73,6 +73,8 @@ public class BrowserComp extends SimpleComp {
|
||||||
model.getOpenFileSystems(),
|
model.getOpenFileSystems(),
|
||||||
model.getSelected())))
|
model.getSelected())))
|
||||||
.createRegion();
|
.createRegion();
|
||||||
|
localDownloadStage.setPrefHeight(200);
|
||||||
|
localDownloadStage.setMaxHeight(200);
|
||||||
var vertical = new VBox(bookmarksList, localDownloadStage);
|
var vertical = new VBox(bookmarksList, localDownloadStage);
|
||||||
vertical.setFillWidth(true);
|
vertical.setFillWidth(true);
|
||||||
|
|
||||||
|
|
|
@ -89,6 +89,7 @@ public class FileSystemHelper {
|
||||||
public static FileSystem.FileEntry getLocal(Path file) throws Exception {
|
public static FileSystem.FileEntry getLocal(Path file) throws Exception {
|
||||||
if (localFileSystem == null) {
|
if (localFileSystem == null) {
|
||||||
localFileSystem = new LocalStore().createFileSystem();
|
localFileSystem = new LocalStore().createFileSystem();
|
||||||
|
localFileSystem.open();
|
||||||
}
|
}
|
||||||
|
|
||||||
return new FileSystem.FileEntry(
|
return new FileSystem.FileEntry(
|
||||||
|
|
|
@ -42,6 +42,9 @@ public class OpenFileSystemComp extends SimpleComp {
|
||||||
}
|
}
|
||||||
|
|
||||||
private Region createContent() {
|
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"));
|
var backBtn = new Button(null, new FontIcon("fth-arrow-left"));
|
||||||
backBtn.setOnAction(e -> model.back());
|
backBtn.setOnAction(e -> model.back());
|
||||||
backBtn.disableProperty().bind(model.getHistory().canGoBackProperty().not());
|
backBtn.disableProperty().bind(model.getHistory().canGoBackProperty().not());
|
||||||
|
@ -70,6 +73,7 @@ public class OpenFileSystemComp extends SimpleComp {
|
||||||
var topBar = new ToolBar();
|
var topBar = new ToolBar();
|
||||||
topBar.getItems()
|
topBar.getItems()
|
||||||
.setAll(
|
.setAll(
|
||||||
|
overview,
|
||||||
backBtn,
|
backBtn,
|
||||||
forthBtn,
|
forthBtn,
|
||||||
new Spacer(10),
|
new Spacer(10),
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
package io.xpipe.app.test;
|
package io.xpipe.app.test;
|
||||||
|
|
||||||
|
import io.xpipe.app.core.AppProperties;
|
||||||
import io.xpipe.app.ext.XPipeServiceProviders;
|
import io.xpipe.app.ext.XPipeServiceProviders;
|
||||||
import io.xpipe.core.util.JacksonMapper;
|
|
||||||
import io.xpipe.app.util.XPipeSession;
|
import io.xpipe.app.util.XPipeSession;
|
||||||
|
import io.xpipe.core.util.JacksonMapper;
|
||||||
import org.junit.jupiter.api.BeforeAll;
|
import org.junit.jupiter.api.BeforeAll;
|
||||||
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
@ -13,6 +14,7 @@ public class LocalExtensionTest extends ExtensionTest {
|
||||||
public static void setup() throws Exception {
|
public static void setup() throws Exception {
|
||||||
JacksonMapper.initModularized(ModuleLayer.boot());
|
JacksonMapper.initModularized(ModuleLayer.boot());
|
||||||
XPipeServiceProviders.load(ModuleLayer.boot());
|
XPipeServiceProviders.load(ModuleLayer.boot());
|
||||||
|
AppProperties.init();
|
||||||
XPipeSession.init(UUID.randomUUID());
|
XPipeSession.init(UUID.randomUUID());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,7 +37,7 @@ public interface ShellControl extends ProcessControl {
|
||||||
|
|
||||||
String getSubTemporaryDirectory();
|
String getSubTemporaryDirectory();
|
||||||
|
|
||||||
public void checkRunning() throws Exception;
|
public void checkRunning();
|
||||||
|
|
||||||
default CommandControl osascriptCommand(String script) {
|
default CommandControl osascriptCommand(String script) {
|
||||||
return command(String.format(
|
return command(String.format(
|
||||||
|
|
Loading…
Reference in a new issue