fix(system-tray): properly deactivates package

This commit is contained in:
Juan Tejada 2015-11-06 13:44:20 -08:00
parent 6588da7f33
commit 66252fc7bc

View file

@ -13,7 +13,7 @@ const onSystemTrayToggle = (showSystemTray)=> {
};
export function activate() {
unsubConfig = atom.config.onDidChange('core.showSystemTray', onSystemTrayToggle);
unsubConfig = atom.config.onDidChange('core.showSystemTray', onSystemTrayToggle).dispose;
if (atom.config.get('core.showSystemTray')) {
systemTray = new SystemTray(platform);
}