Call the proper method to render the menu.

This commit is contained in:
Relintai 2022-08-22 14:29:40 +02:00
parent 8dd5dcb670
commit d505f3e59f
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ void BrowsableFolderServeWebPage::_handle_request(Ref<WebServerRequest> request)
if (e.uri == file_name) {
if (_should_render_menu) {
render_main_menu(request);
render_menu(request);
}
request->body += e.data;

View File

@ -27,7 +27,7 @@ void StaticWebPage::set_should_render_menu(const bool &val) {
void StaticWebPage::_handle_request(Ref<WebServerRequest> request) {
if (_should_render_menu) {
render_main_menu(request);
render_menu(request);
}
render_index(request);