Refresh no longer causes selection to be wiped.
Braces for clarity.
Fix flickering from refresh.
Clearing tasks in a different way so that it doesn't flicker.
Merge pull request #34 from JustDuckItAll/Bugfix-refresh-with-selection

Refresh no longer causes selection to be wiped.