hope to fix

This commit is contained in:
Steven Lu
2026-01-20 11:45:01 +07:00
parent 06130d40da
commit 1e41d87709
2 changed files with 3 additions and 3 deletions

View File

@@ -2406,7 +2406,7 @@ const Action = struct {
// If the tree has no splits (only one leaf), this action is not performable.
// This allows the key event to pass through to the terminal.
if (!tree.isSplit()) return false;
if (!tree.getIsSplit()) return false;
return tree.resize(
switch (value.direction) {
@@ -2564,7 +2564,7 @@ const Action = struct {
// If the tree has no splits (only one leaf), this action is not performable.
// This allows the key event to pass through to the terminal.
if (!tree.isSplit()) return false;
if (!tree.getIsSplit()) return false;
return surface.as(gtk.Widget).activateAction("split-tree.zoom", null) != 0;
},

View File

@@ -561,7 +561,7 @@ pub const SplitTree = extern struct {
));
}
fn getIsSplit(self: *Self) bool {
pub fn getIsSplit(self: *Self) bool {
const tree: *const Surface.Tree = self.private().tree orelse &.empty;
if (tree.isEmpty()) return false;