mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-27 06:07:14 +01:00
Call the proper method to render the menu.
This commit is contained in:
parent
8dd5dcb670
commit
d505f3e59f
@ -25,7 +25,7 @@ void BrowsableFolderServeWebPage::_handle_request(Ref<WebServerRequest> request)
|
|||||||
|
|
||||||
if (e.uri == file_name) {
|
if (e.uri == file_name) {
|
||||||
if (_should_render_menu) {
|
if (_should_render_menu) {
|
||||||
render_main_menu(request);
|
render_menu(request);
|
||||||
}
|
}
|
||||||
|
|
||||||
request->body += e.data;
|
request->body += e.data;
|
||||||
|
@ -27,7 +27,7 @@ void StaticWebPage::set_should_render_menu(const bool &val) {
|
|||||||
|
|
||||||
void StaticWebPage::_handle_request(Ref<WebServerRequest> request) {
|
void StaticWebPage::_handle_request(Ref<WebServerRequest> request) {
|
||||||
if (_should_render_menu) {
|
if (_should_render_menu) {
|
||||||
render_main_menu(request);
|
render_menu(request);
|
||||||
}
|
}
|
||||||
|
|
||||||
render_index(request);
|
render_index(request);
|
||||||
|
Loading…
Reference in New Issue
Block a user