mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-10-22 08:07:22 +00:00
Fix index out of bounds when an app is hidden
This commit is contained in:
1 parent
1780d9417f
commit
e0d42cbe9c
1 file changed
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user