Fixed color display and global log bugs
This commit is contained in:
parent
c6e2ce5293
commit
f5d757a9a5
4 changed files with 51 additions and 48 deletions
|
|
@ -14,7 +14,7 @@ template <typename T> struct TextBoxData {
|
|||
std::function<std::optional<T>(const std::string&)> fromStr;
|
||||
std::function<std::string(const T&)> toStr;
|
||||
bool singleLine = true;
|
||||
bool updateEveryEdit = false;
|
||||
bool updateEveryEdit = true;
|
||||
bool immutable = false;
|
||||
InputManager::TextInputProperties textInputProps;
|
||||
std::function<void()> onEdit;
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@ template <typename T> void TextBox<T>::after_text_input_callback() {
|
|||
if(userInfo.immutable)
|
||||
cur->pos = cur->selectionBeginPos = cur->selectionEndPos = textbox->insert({0, 0}, userInfo.toStr(*userInfo.data));
|
||||
else {
|
||||
if(update_data() && userInfo.onEdit)
|
||||
if(userInfo.updateEveryEdit && update_data() && userInfo.onEdit)
|
||||
gui.set_post_callback_func_high_priority(userInfo.onEdit);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue