This commit is contained in:
crschnick
2026-01-28 14:17:05 +00:00
parent 3fd3722287
commit ef603a4dae
8 changed files with 16 additions and 9 deletions
@@ -65,9 +65,10 @@ public class StoreCategoryComp extends SimpleRegionBuilder {
category.getName().setValue(newValue);
}
});
var name = new LazyTextFieldComp(prop).style("name").apply(sp -> {
var name = new LazyTextFieldComp(prop).style("name").applyStructure(struc -> {
category.getRenameTrigger().onFire(() -> {
sp.requestFocus();
struc.get().requestFocus();
struc.getTextField().selectAll();
});
}).build();
var showing = new SimpleBooleanProperty();
@@ -8,6 +8,7 @@ import io.xpipe.app.storage.DataStorage;
import io.xpipe.app.storage.DataStoreCategory;
import io.xpipe.app.storage.DataStoreColor;
import javafx.application.Platform;
import javafx.beans.binding.Bindings;
import javafx.beans.property.*;
import javafx.beans.value.ObservableStringValue;
@@ -123,6 +124,11 @@ public class StoreCategoryWrapper {
}
category.setName(n);
if (!category.getName().equals(name.getValue())) {
Platform.runLater(() -> {
name.setValue(category.getName());
});
}
});
expanded.addListener((c, o, n) -> {
@@ -11,7 +11,6 @@ import io.xpipe.app.core.window.AppMainWindow;
import io.xpipe.app.platform.InputHelper;
import io.xpipe.app.terminal.TerminalDockHubComp;
import io.xpipe.app.terminal.TerminalDockHubManager;
import io.xpipe.app.terminal.TerminalDockMode;
import io.xpipe.app.util.ObservableSubscriber;
import javafx.scene.input.KeyCode;
@@ -57,7 +56,7 @@ public class StoreLayoutComp extends SimpleRegionBuilder {
var stack = new StackPane(comp.build());
stack.getStyleClass().add("store-layout");
if (TerminalDockHubManager.isPossiblySupported()) {
if (TerminalDockHubManager.isAvailable()) {
var model = TerminalDockHubManager.get();
var dock = new TerminalDockHubComp(model.getDockModel());
stack.getChildren().add(dock.build());
@@ -25,7 +25,7 @@ import java.util.UUID;
@Getter
public class TerminalDockHubManager {
public static boolean isPossiblySupported() {
public static boolean isAvailable() {
if (OsType.ofLocal() != OsType.WINDOWS) {
return false;
}
@@ -59,7 +59,7 @@ public class TerminalDockHubManager {
private static TerminalDockHubManager INSTANCE;
public static void init() {
if (!isPossiblySupported()) {
if (!isAvailable()) {
return;
}
@@ -169,7 +169,7 @@ public class TerminalLauncher {
preferTabs && AppPrefs.get().preferTerminalTabs().get();
var launchConfig = new TerminalLaunchConfiguration(color, adjustedTitle, cleanTitle, preferTabs, paneList);
if (effectivePreferTabs && AppPrefs.get().enableTerminalDocking().get()) {
if (effectivePreferTabs && AppPrefs.get().enableTerminalDocking().get() && TerminalDockHubManager.isAvailable()) {
// Dock terminal if needed
for (TerminalPaneConfiguration pane : launchConfig.getPanes()) {
TerminalDockHubManager.get().openTerminal(pane.getRequest());
+1 -1
View File
@@ -6,7 +6,7 @@ import java.util.stream.Stream
plugins {
id("io.github.gradle-nexus.publish-plugin") version "2.0.0"
id 'org.gradlex.extra-java-module-info' version '1.13.1' apply false
id("com.diffplug.spotless") version "8.2.0" apply false
id("com.diffplug.spotless") version "8.2.1" apply false
}
allprojects { subproject ->
+1
View File
@@ -48,6 +48,7 @@ The scripting system has been completely reworked with the goal of becoming simp
- Improve serial support across the board
- Add support to automatically wait in terminal until serial port is connected
- Creating a new category will now automatically focus the text field to rename it
- Add support for Yakuake terminal
## Fixes
+1 -1
View File
@@ -1 +1 @@
20.4-1
21.0