mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-02-16 02:30:52 +00:00
Fix index out of bounds when an app is hidden
This commit is contained in:
@@ -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