mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
autorunManager: Fix another regression
We may not have a resident source to destroy if no mounts are found.
This commit is contained in:
parent
09c81f79f6
commit
457fb604dd
1 changed files with 2 additions and 1 deletions
|
|
@ -169,7 +169,8 @@ const AutorunManager = new Lang.Class({
|
|||
},
|
||||
|
||||
disable: function() {
|
||||
this._residentSource.destroy();
|
||||
if (this._residentSource)
|
||||
this._residentSource.destroy();
|
||||
this._volumeMonitor.disconnect(this._mountAddedId);
|
||||
this._volumeMonitor.disconnect(this._mountRemovedId);
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue