From d7d996b1d3dbc9ebd123c468f1d1ee8f930dd87c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Mon, 4 Mar 2019 14:36:13 +0100 Subject: [PATCH] automountManager: Fix playing disconnected sound A typo sneaked in in commit 9a35c990 ... https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/432 --- js/ui/components/automountManager.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/ui/components/automountManager.js b/js/ui/components/automountManager.js index 01e8f1e71..92f5b2b90 100644 --- a/js/ui/components/automountManager.js +++ b/js/ui/components/automountManager.js @@ -93,10 +93,10 @@ var AutomountManager = class { if (!this._session.SessionIsActive) return; - let sound = global.display.get_sound(); - sound.play_from_theme('device-removed-media', - _("External drive disconnected"), - null); + let player = global.display.get_sound_player(); + player.play_from_theme('device-removed-media', + _("External drive disconnected"), + null); } _onDriveEjectButton(monitor, drive) {