MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / AskForSettings

Method AskForSettings

plugins/http/http-server.cpp:334–347  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

332}
333
334bool HttpServerSettingsDialog::AskForSettings(QWidget *parent,
335 HttpServer &settings)
336{
337 HttpServerSettingsDialog dialog(parent, settings);
338 dialog.setWindowTitle(obs_module_text("AdvSceneSwitcher.windowTitle"));
339 if (dialog.exec() != DialogCode::Accepted) {
340 return false;
341 }
342 settings._name = dialog._name->text().toStdString();
343 settings._port = dialog._port->value();
344 settings._startOnLoad = dialog._startOnLoad->isChecked();
345 settings.Start();
346 return true;
347}
348
349HttpServerSelection::HttpServerSelection(QWidget *parent)
350 : ItemSelection(httpServers, HttpServer::Create, AskForSettingsWrapper,

Callers

nothing calls this directly

Calls 4

obs_module_textFunction · 0.85
isCheckedMethod · 0.80
valueMethod · 0.45
StartMethod · 0.45

Tested by

no test coverage detected