Force showing tabs when dragging them

This commit is contained in:
Guldoman 2021-09-17 02:48:20 +02:00 committed by Francesco
parent 3eba7cd7f1
commit f6b6634868
1 changed files with 4 additions and 1 deletions

View File

@ -280,7 +280,10 @@ end
function Node:should_show_tabs()
if self.locked then return false end
if #self.views > 1 then return true
local dn = core.root_view.dragged_node
if #self.views > 1
or (dn and dn.dragging) then -- show tabs while dragging
return true
elseif config.always_show_tabs then
return not self.views[1]:is(EmptyView)
end