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`.
This commit is contained in:
Guldoman 2022-05-04 02:58:34 +02:00
parent 94abf66444
commit 0ca0e36009
No known key found for this signature in database
GPG Key ID: C08A498EC7F1AFDD
1 changed files with 1 additions and 1 deletions

View File

@ -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,