Fixed: save profile after it is modified
Using dict.copy
Fixed: check status icon status after preferences dialog is destroyed