Added core.set_active_view(); removed focusable boolean from View
This commit is contained in:
@@ -22,7 +22,6 @@ local TreeView = View:extend()
|
||||
function TreeView:new()
|
||||
TreeView.super.new(self)
|
||||
self.scrollable = true
|
||||
self.focusable = false
|
||||
self.visible = true
|
||||
self.init_size = true
|
||||
self.cache = {}
|
||||
@@ -112,6 +111,7 @@ end
|
||||
|
||||
|
||||
function TreeView:on_mouse_pressed(button, x, y)
|
||||
core.set_active_view(core.last_active_view)
|
||||
if not self.hovered_item then
|
||||
return
|
||||
elseif self.hovered_item.type == "dir" then
|
||||
|
||||
Reference in New Issue
Block a user