MCPcopy Create free account
hub / github.com/deskflow/deskflow / addComputer

Method addComputer

src/lib/gui/dialogs/ServerConfigDialog.cpp:493–505  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

491}
492
493bool ServerConfigDialog::addComputer(const QString &clientName, bool doSilent)
494{
495 bool isAccepted = false;
496 Screen newScreen(clientName);
497
498 if (ScreenSettingsDialog dlg(this, &newScreen, &model().m_Screens); doSilent || dlg.exec() == QDialog::Accepted) {
499 model().addScreen(newScreen);
500 isAccepted = true;
501 }
502
503 ui->lblNewScreen->setEnabled(!model().isFull());
504 return isAccepted;
505}
506
507void ServerConfigDialog::onChange()
508{

Callers

nothing calls this directly

Calls 2

addScreenMethod · 0.45
isFullMethod · 0.45

Tested by

no test coverage detected