mirror of
https://github.com/RGBCube/serenity
synced 2025-05-18 05:35:07 +00:00
Put miscellaneous debug spam behind #ifdefs.
This commit is contained in:
parent
1b16a29044
commit
6c2089c59d
4 changed files with 27 additions and 3 deletions
|
@ -231,7 +231,9 @@ WSWindowManager::WSWindowManager()
|
|||
}
|
||||
return;
|
||||
}
|
||||
#ifdef DEBUG_MENUS
|
||||
dbgprintf("WSMenu 1 item activated: '%s'\n", item.text().characters());
|
||||
#endif
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -340,7 +342,9 @@ void WSWindowManager::set_current_menubar(WSMenuBar* menubar)
|
|||
m_current_menubar = menubar->make_weak_ptr();
|
||||
else
|
||||
m_current_menubar = nullptr;
|
||||
#ifdef DEBUG_MENUS
|
||||
dbgprintf("[WM] Current menubar is now %p\n", menubar);
|
||||
#endif
|
||||
Point next_menu_location { menubar_menu_margin() / 2, 0 };
|
||||
for_each_active_menubar_menu([&] (WSMenu& menu) {
|
||||
int text_width = font().width(menu.name());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue