Showing the changes to interface/src/Application.cpp (1 of 23 files). Show all
Unified · Split
| @@ -219,6 +219,10 @@ Application::Application(int& argc, char** argv, QElapsedTimer &startup_time) : · 218 unmodified lines | ||
| 219 | 219 | if (portStr) { |
| 220 | 220 | listenPort = atoi(portStr); |
| 221 | 221 | } |
| 222 | + | |
| 223 | + // call the OAuthWebviewHandler static getter so that its instance lives in our thread | |
| 224 | + // make sure it is ready before the NodeList might need it | |
| 225 | + OAuthWebViewHandler::getInstance(); | |
| 222 | 226 | |
| 223 | 227 | // start the nodeThread so its event loop is running |
| 224 | 228 | _nodeThread->start(); |
| @@ -418,11 +422,6 @@ Application::Application(int& argc, char** argv, QElapsedTimer &startup_time) : · 193 unmodified lines | ||
| 418 | 422 | connect(_window, &MainWindow::windowGeometryChanged, |
| 419 | 423 | _runningScriptsWidget, &RunningScriptsWidget::setBoundary); |
| 420 | 424 | |
| 421 | − // call the OAuthWebviewHandler static getter so that its instance lives in our thread | |
| 422 | − OAuthWebViewHandler::getInstance(); | |
| 423 | − // make sure the High Fidelity root CA is in our list of trusted certs | |
| 424 | − OAuthWebViewHandler::addHighFidelityRootCAToSSLConfig(); | |
| 425 | − | |
| 426 | 425 | _trayIcon->show(); |
| 427 | 426 | |
| 428 | 427 | #ifdef HAVE_RTMIDI |