fix crash when closing the settings window

add settings window and implement repository editing

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

mercurial