From 0ca0e3600983f843ff909956a65017d2f45ee9c4 Mon Sep 17 00:00:00 2001 From: Guldoman Date: Wed, 4 May 2022 02:58:34 +0200 Subject: [PATCH] Open `LogView` in correct `Node` Using `get_active_node` might result in a locked `Node`; calling `add_view` on that `Node` throws an error. `get_active_node_default` always returns an unlocked `Node`. --- data/core/commands/core.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/core/commands/core.lua b/data/core/commands/core.lua index 927d01f6..3f466292 100644 --- a/data/core/commands/core.lua +++ b/data/core/commands/core.lua @@ -149,7 +149,7 @@ command.add(nil, { end, ["core:open-log"] = function() - local node = core.root_view:get_active_node() + local node = core.root_view:get_active_node_default() node:add_view(LogView()) end,