Compare commits
2 Commits
fac2cb08f1
...
283b5e9f4d
Author | SHA1 | Date |
---|---|---|
|
283b5e9f4d | |
|
451c57f198 |
4
misc.cpp
4
misc.cpp
|
@ -54,7 +54,7 @@ bool ImGui::Button(const char* label, bool enabled) {
|
|||
ImGui::BeginDisabled();
|
||||
}
|
||||
|
||||
bool res = ImGui::Button(label);
|
||||
bool res = ImGui::Button(label) && enabled;
|
||||
|
||||
if (!enabled) {
|
||||
ImGui::EndDisabled();
|
||||
|
@ -67,7 +67,7 @@ bool ImGui::ArrowButton(const char* label, ImGuiDir dir, bool enabled) {
|
|||
ImGui::BeginDisabled();
|
||||
}
|
||||
|
||||
bool res = ImGui::ArrowButton(label, dir);
|
||||
bool res = ImGui::ArrowButton(label, dir) && enabled;
|
||||
|
||||
if (!enabled) {
|
||||
ImGui::EndDisabled();
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit bfce7750b168b5a857b4379596236dda7b58bd39
|
||||
Subproject commit c9a53aa74d84cdb6471651f7b3da14d7248d58c7
|
Loading…
Reference in New Issue