implement repo add/remove

fix crash when closing the settings window

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

mercurial