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:
parent
7d7fb323da
commit
17391c1e00
@ -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
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user