mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-11 10:12:00 +08:00
fix(system-tray): properly deactivates package
This commit is contained in:
parent
6588da7f33
commit
66252fc7bc
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue