automountManager: Don't mount already-mounted volumes
Don't pester the user with autorun popups if a volume is already mounted. https://bugzilla.gnome.org/show_bug.cgi?id=660397
This commit is contained in:
parent
9067689839
commit
a9817f4832
@ -209,6 +209,10 @@ AutomountManager.prototype = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Volume is already mounted, don't bother.
|
||||||
|
if (volume.get_mount())
|
||||||
|
return;
|
||||||
|
|
||||||
if (!this._settings.get_boolean(SETTING_ENABLE_AUTOMOUNT) ||
|
if (!this._settings.get_boolean(SETTING_ENABLE_AUTOMOUNT) ||
|
||||||
!volume.should_automount() ||
|
!volume.should_automount() ||
|
||||||
!volume.can_mount()) {
|
!volume.can_mount()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user