fix compiler errors on MSVC
This commit is contained in:
parent
5c1f41d874
commit
80d33bd5d4
@ -473,8 +473,10 @@ void Imm::MenuItem() noexcept {
|
||||
mem_->value = T {};
|
||||
mem_.Commit();
|
||||
}
|
||||
if (T::kDesc && ImGui::IsItemHovered()) {
|
||||
ImGui::SetTooltip("%s", T::kDesc);
|
||||
if constexpr (T::kDesc) {
|
||||
if (ImGui::IsItemHovered()) {
|
||||
ImGui::SetTooltip("%s", T::kDesc);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user