Updated example control widget.

This commit is contained in:
Branimir Karadžić
2017-06-29 22:47:16 -07:00
parent 5df4969527
commit e9a0f266bb
2 changed files with 13 additions and 1 deletions

View File

@@ -390,7 +390,7 @@ BX_PRAGMA_DIAGNOSTIC_POP();
if (0 == bx::strCmp(_argv[1], "restart")
&& NULL != s_currentApp)
{
if (1 == _argc)
if (2 == _argc)
{
bx::strCopy(s_restartArgs, BX_COUNTOF(s_restartArgs), s_currentApp->getName() );
return bx::kExitSuccess;

View File

@@ -51,6 +51,18 @@ bool showExampleDialog(entry::AppI* _app)
bx::snprintf(command, BX_COUNTOF(command), "app restart %s", items[current]);
cmdExec(command);
}
if (ImGui::Button("Restart") )
{
cmdExec("app restart");
}
ImGui::SameLine();
if (ImGui::Button("Next") )
{
cmdExec("app restart next");
}
}
#if 0