1
0
mirror of synced 2024-11-12 02:00:52 +01:00

fix: Fix CI failure with ImGui::SetTooltip() (#1672)

This commit is contained in:
iTrooz 2024-05-11 21:52:33 +02:00 committed by GitHub
parent e2dd12416c
commit 240bb299f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1156,7 +1156,7 @@ namespace hex::plugin::builtin {
patternDrawer->draw(patterns, &runtime, 150_scaled); patternDrawer->draw(patterns, &runtime, 150_scaled);
}; };
} }
ImGui::SetTooltip("hex.builtin.view.pattern_editor.sections.view"_lang); ImGui::SetTooltip("%s", "hex.builtin.view.pattern_editor.sections.view"_lang.get().c_str());
ImGui::SameLine(); ImGui::SameLine();
if (ImGuiExt::DimmedIconButton(ICON_VS_SAVE_AS, ImGui::GetStyleColorVec4(ImGuiCol_Text))) { if (ImGuiExt::DimmedIconButton(ICON_VS_SAVE_AS, ImGui::GetStyleColorVec4(ImGuiCol_Text))) {
fs::openFileBrowser(fs::DialogMode::Save, {}, [id, &runtime](const auto &path) { fs::openFileBrowser(fs::DialogMode::Save, {}, [id, &runtime](const auto &path) {
@ -1169,7 +1169,7 @@ namespace hex::plugin::builtin {
file.writeVector(runtime.getSection(id)); file.writeVector(runtime.getSection(id));
}); });
} }
ImGui::SetTooltip("hex.builtin.view.pattern_editor.sections.export"_lang); ImGui::SetTooltip("%s", (const char*)"hex.builtin.view.pattern_editor.sections.export"_lang.get().c_str());
ImGui::PopID(); ImGui::PopID();
} }