Readd ability to silence touch sounds

This commit is contained in:
ShadowLarkens
2020-10-02 22:06:32 -07:00
parent 83da5313f6
commit 37b1850bae
3 changed files with 12 additions and 1 deletions

View File

@@ -45,6 +45,7 @@
data["idLink"] = (id ? text("[id.registered_name], [id.assignment]") : "--------")
data["useRetro"] = retro_mode
data["touch_silent"] = touch_silent
data["cartridge_name"] = cartridge ? cartridge.name : ""
data["stationTime"] = stationtime2text() //worldtime2stationtime(world.time) // Aaa which fucking one is canonical there's SO MANY
@@ -102,6 +103,8 @@
id_check(usr, 1)
if("Retro")
retro_mode = !retro_mode
if("TouchSounds")
touch_silent = !touch_silent
if("Ringtone")
return set_ringtone()
else

View File

@@ -127,6 +127,7 @@ const PDASettings = (props, context) => {
idInserted,
idLink,
cartridge_name,
touch_silent,
} = data;
return (
@@ -138,6 +139,13 @@ const PDASettings = (props, context) => {
content={"Retro Theme"}
onClick={() => act("Retro")} />
</LabeledList.Item>
<LabeledList.Item label="Touch Sounds">
<Button
icon="cog"
selected={!touch_silent}
content={touch_silent ? "Disabled" : "Enabled"}
onClick={() => act("TouchSounds")} />
</LabeledList.Item>
{!!cartridge_name && (
<LabeledList.Item label="Cartridge">
<Button

File diff suppressed because one or more lines are too long