Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #10391 from samjoch/bug-883090-SoundsRemoveStartup…
Browse files Browse the repository at this point in the history
…ShutdownSounds

Bug 883090 - [Sounds] Remove startup shutdown sounds and controls, r=@timdream
  • Loading branch information
timdream committed Jun 14, 2013
2 parents 46e1ec0 + 54fcbac commit 586529f
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 59 deletions.
7 changes: 0 additions & 7 deletions apps/settings/index.html
Expand Up @@ -1310,13 +1310,6 @@ <h2 data-l10n-id="other-sounds">Other Sounds</h2>
</label>
<a data-l10n-id="unlock-screen">Unlock Screen</a>
</li>
<li>
<label>
<input type="checkbox" name="bootshutdown.sound.enabled" checked />
<span></span>
</label>
<a data-l10n-id="boot-and-shutdown">Boot and Shutdown</a>
</li>
</ul>
</div>
Expand Down
1 change: 0 additions & 1 deletion apps/settings/locales/settings.en-US.properties
Expand Up @@ -266,7 +266,6 @@ alert-tones=Alert tones
volume-and-tones=Volume & Tones
other-sounds=Other sounds
alerts=Alerts
boot-and-shutdown=Boot and Shutdown
unlock-screen=Unlock screen
camera-shutter=Camera shutter
sent-mail=Sent Mail
Expand Down
3 changes: 0 additions & 3 deletions apps/system/index.html
Expand Up @@ -227,9 +227,6 @@
<script defer src="js/window.js"></script>
<script defer src="js/window_manager.js"></script>

<!-- Boot sound -->
<script defer src="js/boot_sound.js"></script>

<!-- Entry Sheet -->
<link rel="stylesheet" type="text/css" href="style/entry_sheet/entry_sheet.css">
<script defer src="js/entry_sheet.js"></script>
Expand Down
33 changes: 0 additions & 33 deletions apps/system/js/boot_sound.js

This file was deleted.

15 changes: 1 addition & 14 deletions apps/system/js/sleep_menu.js
Expand Up @@ -10,9 +10,6 @@ var SleepMenu = {
// Indicate setting status of volume
isSilentModeEnabled: false,

// Indicate setting status of bootshutdown.sound.enabled
shouldPlayShutdownSound: false,

elements: {},

get visible() {
Expand Down Expand Up @@ -44,11 +41,6 @@ var SleepMenu = {
SettingsListener.observe('audio.volume.notification', 7, function(value) {
self.isSilentModeEnabled = (value == 0);
});

SettingsListener.observe('bootshutdown.sound.enabled', true,
function(value) {
self.shouldPlayShutdownSound = value;
});
},

// Generate items
Expand Down Expand Up @@ -288,13 +280,8 @@ var SleepMenu = {
div.className = 'step1';
var nextAnimation = function nextAnimation(e) {
// Switch to next class
if (e.target == div) {
if (e.target == div)
div.className = 'step2';
if (self.shouldPlayShutdownSound) {
var shutdownSound = new Audio('./resources/sounds/shutdown.ogg');
shutdownSound.play();
}
}

if (e.target != inner)
return;
Expand Down
Binary file removed apps/system/resources/sounds/bootup.ogg
Binary file not shown.
Binary file removed apps/system/resources/sounds/shutdown.ogg
Binary file not shown.
1 change: 0 additions & 1 deletion build/settings.py 100644 → 100755
Expand Up @@ -26,7 +26,6 @@
"bluetooth.enabled": False,
"bluetooth.debugging.enabled": False,
"bluetooth.suspended": False,
"bootshutdown.sound.enabled": False,
"camera.shutter.enabled": True,
"clear.remote-windows.data": False,
"debug.console.enabled": False,
Expand Down

0 comments on commit 586529f

Please sign in to comment.