Remove demoWindow
This commit is contained in:
parent
bba921a2c4
commit
3c0211b3e5
@ -19,7 +19,6 @@ public:
|
||||
void deinit();
|
||||
|
||||
private:
|
||||
bool showDemoWindow = false;
|
||||
bool showSelection = false;
|
||||
sqlite3 *db;
|
||||
sqlite3_stmt *get_gen_num;
|
||||
|
@ -117,7 +117,6 @@ void Vapp::draw()
|
||||
|
||||
if (ImGui::BeginMainMenuBar())
|
||||
{
|
||||
ImGui::MenuItem("Demo Window", nullptr, &showDemoWindow, enableAll);
|
||||
ImGui::MenuItem("Selection", nullptr, &showSelection, enableAll);
|
||||
if (ImGui::MenuItem("Draw", nullptr, false, enableAll))
|
||||
{
|
||||
@ -128,9 +127,6 @@ void Vapp::draw()
|
||||
ImGui::EndMainMenuBar();
|
||||
}
|
||||
|
||||
if (showDemoWindow)
|
||||
ImGui::ShowDemoWindow(&showDemoWindow);
|
||||
|
||||
if (showSelection)
|
||||
{
|
||||
ImGui::Begin("Selection", &showSelection);
|
||||
@ -178,7 +174,7 @@ void Vapp::setUpManager()
|
||||
sqlite3_stmt *get_gen_stmt;
|
||||
sql::prepare_v2(db, get_gen, -1, &get_gen_stmt, NULL);
|
||||
|
||||
DnaManager::cleanUp(&manager, selected_id);
|
||||
DnaManager::cleanUp(&manager, ids[selected_id]);
|
||||
int lodedGen = -1;
|
||||
|
||||
while (lodedGen < selected_gen)
|
||||
@ -195,6 +191,7 @@ void Vapp::setUpManager()
|
||||
if ((unit.index != pos))
|
||||
{
|
||||
// DOTO: SET ERROR
|
||||
TraceLog(LOG_ERROR, "LOADING DNA");
|
||||
sql::finalize(get_gen_stmt);
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user