This commit is contained in:
Branimir Karadžić
2017-06-29 22:23:18 -07:00
parent 7440bed0b8
commit 917385f79e
42 changed files with 181 additions and 140 deletions

View File

@@ -5,6 +5,8 @@
#include "imgui/imgui.h"
#include "entry/entry.h"
#include "entry/cmd.h"
#include <bx/string.h>
bool showExampleDialog(entry::AppI* _app)
{
@@ -45,8 +47,9 @@ bool showExampleDialog(entry::AppI* _app)
if (1 < num
&& ImGui::Combo("Example", &current, items, num) )
{
entry::setRestartArgs(items[current]);
restart = true;
char command[1024];
bx::snprintf(command, BX_COUNTOF(command), "app restart %s", items[current]);
cmdExec(command);
}
}