Return to the PC grid if the selected PC goes offline or becomes unpaired

This commit is contained in:
Cameron Gutman
2018-08-09 18:48:40 -07:00
parent c61182bcb2
commit 3f81d055af
3 changed files with 21 additions and 0 deletions

View File

@@ -108,6 +108,14 @@ void AppModel::handleComputerStateChanged(NvComputer* computer)
return;
}
// If the computer has gone offline or we've been unpaired,
// signal the UI so we can go back to the PC view.
if (m_Computer->state == NvComputer::CS_OFFLINE ||
m_Computer->pairState == NvComputer::PS_NOT_PAIRED) {
emit computerLost();
return;
}
// First, process additions/removals from the app list. This
// is required because the new game may now be running, so
// we can't check that first.