[Scene] Add SceneStringName::toggled

This commit is contained in:
Yuri Rubinsky 2024-06-01 13:15:13 +03:00 committed by Chaosus
parent f648de1a83
commit 52889ab7ee
44 changed files with 74 additions and 72 deletions

View file

@ -113,7 +113,7 @@ StyleBoxPreview::StyleBoxPreview() {
// This theme variation works better than the normal theme because there's no focus highlight.
grid_preview->set_theme_type_variation("PreviewLightButton");
grid_preview->set_toggle_mode(true);
grid_preview->connect("toggled", callable_mp(this, &StyleBoxPreview::_grid_preview_toggled));
grid_preview->connect(SceneStringName(toggled), callable_mp(this, &StyleBoxPreview::_grid_preview_toggled));
grid_preview->set_pressed(grid_preview_enabled);
add_child(grid_preview);
}