Skip to content

Commit

Permalink
Merge pull request #331 from sphaero/opentxtedit
Browse files Browse the repository at this point in the history
open texteditor if created
  • Loading branch information
ikbenmacje committed Apr 24, 2024
2 parents fc7e426 + 2782f4a commit 8273f18
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/StageWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ bool StageWindow::Save( const char* configFile )
int rc = sph_stage_save_as( stage, configFile);
return rc == 0;
}

int StageWindow::RenderMenuBar()
{
static char* configFile = new char[64] { 0x0 };
Expand Down Expand Up @@ -263,7 +264,9 @@ int StageWindow::RenderMenuBar()
{
if ( ImGui::MenuItem(ICON_FA_FOLDER_OPEN " New editor") )
{
gzb::App::getApp().text_editors.push_back(new gzb::TextEditorWindow());
TextEditorWindow *te = new gzb::TextEditorWindow();
gzb::App::getApp().text_editors.push_back(te);
te->showing = true;
}
for (auto w : gzb::App::getApp().text_editors )
{
Expand Down

0 comments on commit 8273f18

Please sign in to comment.