diff options
| author | bobzel <zzzman@gmail.com> | 2022-08-02 16:28:18 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2022-08-02 16:28:18 -0400 |
| commit | cfa31b87f1c2a6597ed3cfb6a777126c58ace665 (patch) | |
| tree | 25aef539a44f0825cc3d6fba66e7c7fff061ddae /src/client/views/nodes/button/FontIconBox.tsx | |
| parent | 131408385d49fc8d5f360c2918737da4cecc13c1 (diff) | |
Adjusted ScriptFields to have a rawScript, and updated ScrptingBoxes to create a scriptField even for scripts that don't compile. Updated CurrentUserUtils setup functions for clicks. Fixed TemplateMenu to work again.
Diffstat (limited to 'src/client/views/nodes/button/FontIconBox.tsx')
| -rw-r--r-- | src/client/views/nodes/button/FontIconBox.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/views/nodes/button/FontIconBox.tsx b/src/client/views/nodes/button/FontIconBox.tsx index 5e279f984..78ef85ec2 100644 --- a/src/client/views/nodes/button/FontIconBox.tsx +++ b/src/client/views/nodes/button/FontIconBox.tsx @@ -579,11 +579,11 @@ ScriptingGlobals.add(function setView(view: string) { // toggle: Set overlay status of selected document ScriptingGlobals.add(function setBackgroundColor(color?: string, checkResult?: boolean) { - const selected = SelectionManager.Docs().lastElement(); + const selected = SelectionManager.Views().lastElement(); if (checkResult) { - return selected?._backgroundColor ?? 'transparent'; + return selected?.props.Document._backgroundColor ?? 'transparent'; } - if (selected) selected._backgroundColor = color; + if (selected) selected.props.Document._backgroundColor = color; }); // toggle: Set overlay status of selected document |
