summaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
Diffstat (limited to 'core/src')
-rw-r--r--core/src/UI/UI_Utils.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/src/UI/UI_Utils.cpp b/core/src/UI/UI_Utils.cpp
index e3ac097..a2bf692 100644
--- a/core/src/UI/UI_Utils.cpp
+++ b/core/src/UI/UI_Utils.cpp
@@ -41,6 +41,9 @@ bool ImGui::Button(const char* label, const ImVec2& sizeArg, bool disabled)
bool res = ImGui::Button(label, sizeArg);
if (disabled) PopDisabled();
+ // Help clang-tidy's static analyzer: if the button is disabled, res should always be false
+ assert(!disabled || (disabled && !res));
+
return res;
}