Minor changes.
Integrate progress dialog into settings dialog.
Handle sync enable flag correctly in folder scheduling.

This fixes bug #1083.