Add the ability to rename PCs

This commit is contained in:
Cameron Gutman
2020-05-01 18:34:15 -07:00
parent 0d9d0845f5
commit b75f662c41
7 changed files with 85 additions and 1 deletions

View File

@@ -416,6 +416,19 @@ void ComputerManager::deleteHost(NvComputer* computer)
QThreadPool::globalInstance()->start(new DeferredHostDeletionTask(this, computer));
}
void ComputerManager::renameHost(NvComputer* computer, QString name)
{
{
QWriteLocker(&computer->lock);
computer->name = name;
computer->hasCustomName = true;
}
// Notify the UI of the state change
handleComputerStateChanged(computer);
}
void ComputerManager::handleAboutToQuit()
{
QWriteLocker lock(&m_Lock);