fix compiler errors on MSVC

This commit is contained in:
falsycat 2022-11-18 07:54:22 -08:00
parent 5c1f41d874
commit 80d33bd5d4

View File

@ -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);
}
}
}