mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-05-29 07:20:35 +00:00
Adjust prior fixes
This commit is contained in:
@@ -147,11 +147,9 @@ public class StoreChoicePopover<T extends DataStore> {
|
||||
ignored -> true);
|
||||
var filter = FilterComp.ofStoreFilter(storeFilter).hgrow();
|
||||
|
||||
var addButton = creationCategory != null
|
||||
var addButton = creationCategory != null && creationCategory.getDefaultProvider() != null
|
||||
? new ButtonComp(null, new LabelGraphic.IconGraphic("mdi2p-plus"), () -> {
|
||||
StoreCreationDialog.showCreation(
|
||||
creationCategory.getDefaultProvider() != null ?
|
||||
DataStoreProviders.byId(creationCategory.getDefaultProvider()).orElseThrow() : null,
|
||||
StoreCreationDialog.showCreation(DataStoreProviders.byId(creationCategory.getDefaultProvider()).orElseThrow(),
|
||||
creationCategory);
|
||||
})
|
||||
.describe(d -> d.nameKey("addConnection"))
|
||||
|
||||
@@ -145,11 +145,7 @@ public interface WezTerminalType extends ExternalTerminalType, TrackableTerminal
|
||||
|
||||
command.add("--always-new-process")
|
||||
.add(configuration.getPanes().getFirst().getDialectLaunchCommand());
|
||||
ThreadHelper.runFailableAsync(() -> {
|
||||
try (var sc = ProcessControlProvider.get().createLocalProcessControl(true).start()) {
|
||||
sc.command(command).execute();
|
||||
}
|
||||
});
|
||||
ExternalApplicationHelper.startAsync(command);
|
||||
activeSocket = waitForInstanceStart(50);
|
||||
if (activeSocket.isEmpty()) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user