Skip to content

Commit

Permalink
Fix the grid/mask checkbox not updated when toggled on the web-app (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mehrabsha authored Nov 12, 2023
1 parent 4f98ffa commit cac59d4
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions newIDE/app/src/SceneEditor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -378,22 +378,28 @@ export default class SceneEditor extends React.Component<Props, State> {
};

toggleWindowMask = () => {
this.setState({
instancesEditorSettings: {
...this.state.instancesEditorSettings,
windowMask: !this.state.instancesEditorSettings.windowMask,
this.setState(
{
instancesEditorSettings: {
...this.state.instancesEditorSettings,
windowMask: !this.state.instancesEditorSettings.windowMask,
},
},
});
() => this.updateToolbar()
);
};

toggleGrid = () => {
this.setState({
instancesEditorSettings: {
...this.state.instancesEditorSettings,
grid: !this.state.instancesEditorSettings.grid,
snap: !this.state.instancesEditorSettings.grid,
this.setState(
{
instancesEditorSettings: {
...this.state.instancesEditorSettings,
grid: !this.state.instancesEditorSettings.grid,
snap: !this.state.instancesEditorSettings.grid,
},
},
});
() => this.updateToolbar()
);
};

openSetupGrid = (open: boolean = true) => {
Expand Down

0 comments on commit cac59d4

Please sign in to comment.