mirror of https://github.com/WerWolv/ImHex.git
fix: Byte foreground highlighting being disabled during editing
This commit is contained in:
parent
83fa024fab
commit
483325990c
|
@ -501,7 +501,7 @@ namespace hex::ui {
|
||||||
// Get byte foreground color
|
// Get byte foreground color
|
||||||
|
|
||||||
auto popForeground = SCOPE_GUARD { ImGui::PopStyleColor(); };
|
auto popForeground = SCOPE_GUARD { ImGui::PopStyleColor(); };
|
||||||
if (foregroundColor.has_value() && !m_editingAddress.has_value())
|
if (foregroundColor.has_value() && m_editingAddress != byteAddress)
|
||||||
ImGui::PushStyleColor(ImGuiCol_Text, *foregroundColor);
|
ImGui::PushStyleColor(ImGuiCol_Text, *foregroundColor);
|
||||||
else
|
else
|
||||||
popForeground.release();
|
popForeground.release();
|
||||||
|
|
Loading…
Reference in New Issue