You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Remove ToolButton in favor of Button
ToolButton has no redeeming differences with Button; it's just a Button with the Flat property enabled by default. Removing it avoids some confusion when creating GUIs. Existing ToolButtons will be converted to Buttons, but the Flat property won't be enabled automatically. This closes https://github.com/godotengine/godot-proposals/issues/1081.
This commit is contained in:
@@ -300,7 +300,7 @@ void VersionControlEditorPlugin::register_editor() {
|
||||
TabContainer *dock_vbc = (TabContainer *)version_commit_dock->get_parent_control();
|
||||
dock_vbc->set_tab_title(version_commit_dock->get_index(), TTR("Commit"));
|
||||
|
||||
ToolButton *vc = EditorNode::get_singleton()->add_bottom_panel_item(TTR("Version Control"), version_control_dock);
|
||||
Button *vc = EditorNode::get_singleton()->add_bottom_panel_item(TTR("Version Control"), version_control_dock);
|
||||
set_version_control_tool_button(vc);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user