Logic fix for icon activation.
Fixed comments.
Cleaned up assert statement.
Merge pull request #173 from angathorion/tray-icon-activate-fix

Logic fix for icon activation.