1
0
mirror of https://github.com/kepler155c/opus synced 2025-04-10 09:36:39 +00:00

Made the prototype functional

This commit is contained in:
signalhunter 2020-08-22 03:11:29 -04:00
parent 7d7fb323da
commit 17391c1e00

View File

@ -40,5 +40,14 @@ return UI.Tab {
enable = function(self)
self:reload()
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
}