From 0f3415987f2218aea6a1661421dc42d84d513f90 Mon Sep 17 00:00:00 2001
From: gradient <gradient@null.and.void>
Date: Sat, 23 Sep 2017 14:43:15 -0500
Subject: [PATCH] gui.cpp: adjust function order [aesthetics]

---
 src/gui.cpp | 30 +++++++++++++++---------------
 1 file changed, 15 insertions(+), 15 deletions(-)

diff --git a/src/gui.cpp b/src/gui.cpp
index 5834911..872e38c 100644
--- a/src/gui.cpp
+++ b/src/gui.cpp
@@ -12,21 +12,6 @@ void Gui::render() {
 	this->render_menubar();
 }
 
-void Gui::render_menubar() {
-	if (ImGui::BeginMainMenuBar()) {
-		if (ImGui::BeginMenu("File"))
-			render_mmb_file();
-
-		if (ImGui::BeginMenu("View"))
-			render_mmb_view();
-
-		if (ImGui::BeginMenu("Debug"))
-			render_mmb_debug();
-
-		ImGui::EndMainMenuBar();
-	}
-}
-
 void Gui::render_project_overlay() {
 	ImGui::SetNextWindowPos(ImVec2(20, 30));
     if (ImGui::Begin("", &this->project_overlay_open, ImVec2(200,0), 0.3f, ImGuiWindowFlags_NoTitleBar|ImGuiWindowFlags_NoResize|ImGuiWindowFlags_NoMove|ImGuiWindowFlags_NoSavedSettings)) {
@@ -48,6 +33,21 @@ void Gui::render_project_overlay() {
     }
 }
 
+void Gui::render_menubar() {
+	if (ImGui::BeginMainMenuBar()) {
+		if (ImGui::BeginMenu("File"))
+			render_mmb_file();
+
+		if (ImGui::BeginMenu("View"))
+			render_mmb_view();
+
+		if (ImGui::BeginMenu("Debug"))
+			render_mmb_debug();
+
+		ImGui::EndMainMenuBar();
+	}
+}
+
 void Gui::render_mmb_file() {
 	if (ImGui::MenuItem("Load project", "CTRL+O")) {
 		/*nfdchar_t *out_path = nullptr;