mirror of
https://github.com/clangen/musikcube.git
synced 2024-11-19 20:13:36 +00:00
Fixed a minor order of operations bugs that was causing focus via click
to not work properly in all cases.
This commit is contained in:
parent
19d7d10543
commit
6cd3614641
@ -263,8 +263,8 @@ bool LayoutBase::SetFocus(IWindowPtr focus) {
|
||||
else {
|
||||
for (size_t i = 0; i < this->focusable.size(); i++) {
|
||||
if (this->focusable[i] == focus) {
|
||||
this->EnsureValidFocus();
|
||||
this->focused = i;
|
||||
this->EnsureValidFocus();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user