mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-07-08 11:30:42 +00:00
Rework
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Generated
+4
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user