Skip to content

Commit 4bd947e

Browse files
committed
Remove sourceId on disable
1 parent 17744ba commit 4bd947e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

extension.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,11 @@ export default class MyExtension extends Extension {
473473
this._hibernateMenuItem.destroy();
474474
this._hibernateMenuItem = 0;
475475
}
476+
477+
if (this.sourceId) {
478+
GLib.Source.remove(this.sourceId);
479+
this.sourceId = null;
480+
}
476481
};
477482
}
478483

0 commit comments

Comments
 (0)