gui: Expand tree, if new items are added

Signed-off-by: Michael Buesch <m@bues.ch>
Automatically add selected file extension

Signed-off-by: Michael Buesch <m@bues.ch>