Skip to content

Commit

Permalink
initialize canvas settings form with values from canvas model
Browse files Browse the repository at this point in the history
  • Loading branch information
creme332 committed Jun 25, 2024
1 parent d85a3c7 commit 56e06b3
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ public SideMenuController(AppState app, SideMenuPanel sidebar) {

sidebar.setVisible(app.getSideBarVisibility());

// set default values in canvas settings
sidebar.getGridLinesCheckBox().setSelected(app.getCanvasModel().isGuidelinesEnabled());
sidebar.getAxesCheckBox().setSelected(app.getCanvasModel().isAxesVisible());

// Initialize button listeners
initializeButtonListeners(app);
}
Expand Down

0 comments on commit 56e06b3

Please sign in to comment.