Trust manager #46

Merged
signalhunter merged 3 commits from trustmgr into develop-1.8 2020-08-24 01:41:26 -04:00
Showing only changes of commit 17391c1e00 - Show all commits

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
}