Skip to content

Commit

Permalink
Get settings reloading working.
Browse files Browse the repository at this point in the history
  • Loading branch information
e3ndr committed Jun 26, 2023
1 parent 9125d9e commit 75c0bd6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Base/src/main/resources/sesl/shim.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@
allFields.font_size += "px";
});

Widget.on("new-settings", () => parent.location.reload());

Widget.on(
"custom-data",
({ shimType, customCSS, customJS, customHTML }) => {
// Widget.on("update", () => location.reload()); // Mimic Streamlabs behavior.

// Make the custom CSS style.
{
// Go through all of the fields and replace them.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ public class ShimWidget extends SESLWidget {

@Override
protected void onSettingsUpdate() {
this.broadcastToAll("new-settings"); // Tell all of the Widgets to reload.

this.setSettingsLayout(
SESL.generateLayout(this)
.addSection(
Expand Down

0 comments on commit 75c0bd6

Please sign in to comment.