mirror of https://github.com/kepler155c/opus
Made the prototype functional
This commit is contained in:
parent
7d7fb323da
commit
17391c1e00
|
@ -40,5 +40,14 @@ return UI.Tab {
|
||||||
enable = function(self)
|
enable = function(self)
|
||||||
self:reload()
|
self:reload()
|
||||||
UI.Tab.enable(self)
|
UI.Tab.enable(self)
|
||||||
|
end,
|
||||||
|
eventHandler = function(self, event)
|
||||||
|
if event.type == 'grid_select' then
|
||||||
|
local hosts = Util.readTable('usr/.known_hosts')
|
||||||
|
hosts[event.selected.id] = nil
|
||||||
|
Util.writeTable('usr/.known_hosts', hosts)
|
||||||
|
self:reload()
|
||||||
|
return true
|
||||||
|
end
|
||||||
end
|
end
|
||||||
}
|
}
|
Loading…
Reference in New Issue