Hide speak context menu when generate audio is not on

This commit is contained in:
ebolam
2022-12-06 17:58:13 -05:00
parent 994acd70a6
commit 80a8794f63

View File

@@ -101,7 +101,7 @@ var finder_actions = [
const context_menu_actions = {
gamescreen: [
{label: "Speak", icon: "record_voice_over", enabledOn: "CARET", click: speak_audio},
{label: "Speak", icon: "record_voice_over", enabledOn: "CARET", click: speak_audio, shouldShow: function () {return document.getElementById("story_gen_audio").checked;}},
null,
{label: "Cut", icon: "content_cut", enabledOn: "SELECTION", click: cut},
{label: "Copy", icon: "content_copy", enabledOn: "SELECTION", click: copy},