Added core.set_active_view(); removed focusable boolean from View
This commit is contained in:
@@ -16,13 +16,13 @@ StatusView.separator2 = " | "
|
||||
|
||||
function StatusView:new()
|
||||
StatusView.super.new(self)
|
||||
self.focusable = false
|
||||
self.message_timeout = 0
|
||||
self.message = {}
|
||||
end
|
||||
|
||||
|
||||
function StatusView:on_mouse_pressed()
|
||||
core.set_active_view(core.last_active_view)
|
||||
if system.get_time() < self.message_timeout
|
||||
and not core.active_view:is(LogView) then
|
||||
command.perform "core:open-log"
|
||||
|
||||
Reference in New Issue
Block a user