refactor: replace manual iteration of CWindow with existing methods (#3147)
This commit is contained in:
parent
6a0e2bbff3
commit
69439871e6
3 changed files with 12 additions and 25 deletions
|
|
@ -1243,10 +1243,7 @@ void CKeybindManager::changeGroupActive(std::string args) {
|
|||
if (args != "b" && args != "prev") {
|
||||
PWINDOW->setGroupCurrent(PWINDOW->m_sGroupData.pNextWindow);
|
||||
} else {
|
||||
CWindow* curr = PWINDOW->m_sGroupData.pNextWindow;
|
||||
while (curr->m_sGroupData.pNextWindow != PWINDOW)
|
||||
curr = curr->m_sGroupData.pNextWindow;
|
||||
PWINDOW->setGroupCurrent(curr);
|
||||
PWINDOW->setGroupCurrent(PWINDOW->getGroupPrevious());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue