light cg reformatting

This commit is contained in:
Green Sky 2024-11-29 19:25:45 +01:00
parent a0cc3c3fe7
commit 1faa7e5510
No known key found for this signature in database

View File

@ -915,7 +915,6 @@ float ChatGui4::render(float time_delta) {
); );
} }
{
// TODO: add support for more than images // TODO: add support for more than images
// !!! polling each frame can be VERY expensive !!! // !!! polling each frame can be VERY expensive !!!
//const auto* mime_type = clipboardHasImage(); //const auto* mime_type = clipboardHasImage();
@ -926,7 +925,6 @@ float ChatGui4::render(float time_delta) {
} else if (const auto* fpmt = clipboardHasFileList(); fpmt != nullptr) { } else if (const auto* fpmt = clipboardHasFileList(); fpmt != nullptr) {
pasteFile(fpmt); pasteFile(fpmt);
} }
//} else if (ImGui::IsItemClicked(ImGuiMouseButton_Right)) {
} else if (ImGui::BeginPopupContextItem(nullptr, ImGuiMouseButton_Right)) { } else if (ImGui::BeginPopupContextItem(nullptr, ImGuiMouseButton_Right)) {
// TODO: use list instead // TODO: use list instead
const static std::vector<const char*> image_mime_types { const static std::vector<const char*> image_mime_types {
@ -948,7 +946,6 @@ float ChatGui4::render(float time_delta) {
} }
//ImGui::EndDisabled(); //ImGui::EndDisabled();
} }
}
ImGui::EndChild(); ImGui::EndChild();
#if 0 #if 0