Main window: remove forgotten test code

Signed-off-by: Jerome Flesch <jflesch@wyplay.com>
Main window: Rearrange slightly the code + Add details on the TODO

Signed-off-by: Jerome Flesch <jflesch@wyplay.com>