impr: Show infinity icon in pattern editor view when pattern limit is disabled
This commit is contained in:
parent
73d4214fd3
commit
e90e414d5a
@ -171,9 +171,15 @@ namespace hex::plugin::builtin {
|
|||||||
ImGui::SeparatorEx(ImGuiSeparatorFlags_Vertical);
|
ImGui::SeparatorEx(ImGuiSeparatorFlags_Vertical);
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
|
|
||||||
ImGui::TextFormatted("{} / {}",
|
if (auto max = runtime.getMaximumPatternCount(); max >= std::numeric_limits<u32>::max()) {
|
||||||
runtime.getCreatedPatternCount(),
|
ImGui::TextFormatted("{} / {}",
|
||||||
runtime.getMaximumPatternCount());
|
runtime.getCreatedPatternCount(),
|
||||||
|
ICON_FA_INFINITY);
|
||||||
|
} else {
|
||||||
|
ImGui::TextFormatted("{} / {}",
|
||||||
|
runtime.getCreatedPatternCount(),
|
||||||
|
runtime.getMaximumPatternCount());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user