mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
[glass] Save input after clicking away (#6657)
This commit is contained in:
@@ -257,8 +257,9 @@ bool InputExpr(const char* label, V* v, const char* format,
|
||||
#endif
|
||||
}
|
||||
|
||||
bool changed = ImGui::InputText(label, inputBuffer, kBufferSize, flags);
|
||||
ImGui::InputText(label, inputBuffer, kBufferSize, flags);
|
||||
bool active = ImGui::IsItemActive();
|
||||
bool changed = ImGui::IsItemDeactivatedAfterEdit();
|
||||
|
||||
if (active || changed) {
|
||||
InputExprState& state = exprStates[id];
|
||||
|
||||
Reference in New Issue
Block a user