Skip to content

Commit

Permalink
🤏 [Variable] Close popup after resetting to default value
Browse files Browse the repository at this point in the history
  • Loading branch information
JulesFouchy committed Mar 12, 2024
1 parent 8b60d29 commit 15052f5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Cool/Variables/Variable.tpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ void Variable<T>::imgui_reset_buttons(ImGuiVariableCallbacks const& callbacks)
_value = _default_value;
callbacks.on_value_changed();
callbacks.on_value_editing_finished();
ImGui::CloseCurrentPopup();
}
});

Expand Down

0 comments on commit 15052f5

Please sign in to comment.