mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2024-12-14 21:32:27 +00:00
Fix index out of bounds when an app is hidden
This commit is contained in:
parent
1780d9417f
commit
e0d42cbe9c
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ Session* AppModel::createSessionForApp(int appIndex)
|
|||
|
||||
int AppModel::getDirectLaunchAppIndex()
|
||||
{
|
||||
for (int i = 0; i < m_AllApps.count(); i++) {
|
||||
for (int i = 0; i < m_VisibleApps.count(); i++) {
|
||||
if (m_VisibleApps[i].directLaunch) {
|
||||
return i;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue