Application: use ImGui::BeginTooltip() correctly.
This commit is contained in:
parent
cd5213a3f9
commit
387647669f
2 changed files with 2 additions and 4 deletions
|
@ -402,8 +402,7 @@ Application::drawHelpMarker(Containers::StringView text, float wrap_pos) {
|
|||
|
||||
void
|
||||
Application::drawTooltip(Containers::StringView text, float wrap_pos) {
|
||||
if(ImGui::IsItemHovered()){
|
||||
ImGui::BeginTooltip();
|
||||
if(ImGui::IsItemHovered() && ImGui::BeginTooltip()) {
|
||||
if(wrap_pos > 0.0f) {
|
||||
ImGui::PushTextWrapPos(wrap_pos);
|
||||
}
|
||||
|
|
|
@ -267,8 +267,7 @@ Application::drawBackupListPopup() {
|
|||
|
||||
ImGui::TableSetColumnIndex(0);
|
||||
ImGui::TextUnformatted(backup.company.cbegin(), backup.company.cend());
|
||||
if(ImGui::IsItemHovered()) {
|
||||
ImGui::BeginTooltip();
|
||||
if(ImGui::IsItemHovered() && ImGui::BeginTooltip()) {
|
||||
for(const auto& file : backup.includedFiles) {
|
||||
ImGui::TextUnformatted(file.cbegin());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue