mirror of
https://github.com/NohamR/Reclass.git
synced 2026-05-10 19:59:21 +00:00
Fix root class rename targeting wrong struct when using type selector
RootClassName and RootClassType edit handlers now use m_viewRootId instead of blindly picking the first root struct. Default name for unnamed structs changed from <no name> to NoName. Dim the opening brace on the command row to match the rest of the bar's grey text.
This commit is contained in:
@@ -732,6 +732,14 @@ void RcxEditor::applyCommandRowPills() {
|
||||
if (rn.valid) {
|
||||
fillIndicatorCols(IND_CLASS_NAME, line, rn.start, rn.end);
|
||||
}
|
||||
|
||||
// Dim trailing opening brace to match the rest of the command row grey
|
||||
for (int i = t.size() - 1; i >= 0; --i) {
|
||||
if (t[i] == ' ' || t[i] == '\t') continue;
|
||||
if (t[i] == '{')
|
||||
fillIndicatorCols(IND_HEX_DIM, line, i, i + 1);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// ── Shared inline-edit shutdown ──
|
||||
|
||||
Reference in New Issue
Block a user