mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[glass] Save input after clicking away (#6657)
This commit is contained in:
@@ -1428,8 +1428,9 @@ static void EmitEntryValueEditable(NetworkTablesModel* model,
|
||||
}
|
||||
case NT_STRING: {
|
||||
char* v = GetTextBuffer(entry.valueStr);
|
||||
if (ImGui::InputText(typeStr, v, kTextBufferSize,
|
||||
ImGuiInputTextFlags_EnterReturnsTrue)) {
|
||||
ImGui::InputText(typeStr, v, kTextBufferSize,
|
||||
ImGuiInputTextFlags_EnterReturnsTrue);
|
||||
if (ImGui::IsItemDeactivatedAfterEdit()) {
|
||||
if (v[0] == '"') {
|
||||
if (entry.publisher == 0) {
|
||||
entry.publisher =
|
||||
|
||||
Reference in New Issue
Block a user