implement key management UI

fix crash when closing the preferences window (GTK3)

(0) -30 -10 -2 +2 +10 tip

mercurial