mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
[Editor] Simplify native menu icon generation.
This commit is contained in:
parent
3a97723ff2
commit
e68b2436ee
6 changed files with 45 additions and 71 deletions
|
|
@ -333,7 +333,7 @@ void EditorDockManager::update_docks_menu() {
|
|||
// Add docks.
|
||||
docks_menu_docks.clear();
|
||||
int id = 0;
|
||||
const Callable icon_fetch = callable_mp((Window *)docks_menu, &Window::get_editor_theme_native_menu_icon).bind(global_menu, dark_mode);
|
||||
const Callable icon_fetch = callable_mp(EditorNode::get_singleton(), &EditorNode::get_editor_theme_native_menu_icon).bind(global_menu, dark_mode);
|
||||
for (EditorDock *dock : all_docks) {
|
||||
if (!dock->enabled || !dock->global) {
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue