Avoid crashing in 'SideBar::setPageVisible'
Reformat 'sidebar.h' and 'sidebar.cpp' to the new code formatting style