1
0
mirror of https://github.com/moparisthebest/minetest synced 2024-12-22 15:48:48 -05:00

Settings tab: double click opens/closes trees

This commit is contained in:
Kahrl 2015-10-18 11:03:59 +02:00
parent ba9d7215ec
commit 2364449d7a

View File

@ -928,6 +928,11 @@ bool GUITable::OnEvent(const SEvent &event)
sel_doubleclick) {
sendTableEvent(sel_column, sel_doubleclick);
}
// Treeview: double click opens/closes trees
if (m_has_tree_column && sel_doubleclick) {
toggleVisibleTree(m_selected, 0, false);
}
}
}
return true;