This commit is contained in:
crschnick
2026-06-14 02:03:19 +00:00
parent d734741289
commit f225599b41
4 changed files with 13 additions and 1 deletions
@@ -16,6 +16,7 @@ import io.xpipe.app.hub.comp.StoreViewState;
import io.xpipe.app.platform.BindingsHelper;
import io.xpipe.app.platform.InputHelper;
import io.xpipe.app.platform.PlatformThread;
import io.xpipe.app.storage.DataStorage;
import io.xpipe.app.storage.DataStoreEntry;
import io.xpipe.app.storage.DataStoreEntryRef;
import io.xpipe.app.util.FileReference;
@@ -57,6 +58,10 @@ public class BrowserFileChooserSessionComp extends ModalOverlayContentComp {
boolean save,
boolean directory,
Predicate<DataStoreEntry> filter) {
if (store.get() == null && DataStorage.get().getStoreEntries().stream().noneMatch(filter)) {
return;
}
var model = new BrowserFileChooserSessionModel(directory);
model.setOnFinish(fileStores -> {
file.accept(fileStores.size() > 0 ? fileStores.getFirst() : null);
@@ -6,6 +6,7 @@ import io.xpipe.app.comp.BaseRegionBuilder;
import io.xpipe.app.comp.base.ModalButton;
import io.xpipe.app.comp.base.ModalOverlay;
import io.xpipe.app.core.window.AppDialog;
import io.xpipe.app.ext.ProcessControlProvider;
import io.xpipe.app.hub.comp.StoreLayoutComp;
import io.xpipe.app.hub.comp.StoreViewState;
import io.xpipe.app.platform.LabelGraphic;
@@ -242,7 +243,7 @@ public class AppLayoutModel {
AppI18n.observable("webtop"),
new LabelGraphic.IconGraphic("mdal-desktop_mac"),
null,
() -> Hyperlinks.open(Hyperlinks.GITHUB_WEBTOP),
() -> ProcessControlProvider.get().showWebtopDeploymentDialog(),
null));
} else {
l.add(
@@ -89,4 +89,6 @@ public abstract class ProcessControlProvider {
CommandBuilder b, String prefix, UUID requestId, UUID secretId, String... askpassName);
public abstract void refreshWsl();
public abstract void showWebtopDeploymentDialog();
}
+4
View File
@@ -2245,4 +2245,8 @@ webtop.displayName=XPipe Webtop
webtop.displayDescription=Access and manage a webtop environment remotely
webtopHost=Host
webtopHostDescription=The container the webtop environment is running on
webtopDeploymentName=Hostname
webtopDeploymentNameDescription=The name of the container
webtopDeploymentType=Deployment type
webtopDeploymentTypeDescription=The kind of container system the webtop should be deployed on