mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-08-30 05:51:01 +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()
|
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) {
|
if (m_VisibleApps[i].directLaunch) {
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user