Showing the changes to interface/src/scripting/WindowScriptingInterface.cpp (1 of 4 files). Show all
Unified · Split
| @@ -638,3 +638,13 @@ void WindowScriptingInterface::setActiveDisplayPlugin(int index) { · 637 unmodified lines | ||
| 638 | 638 | auto name = PluginManager::getInstance()->getDisplayPlugins().at(index)->getName(); |
| 639 | 639 | qApp->setActiveDisplayPlugin(name); |
| 640 | 640 | } |
| 641 | + | |
| 642 | +void WindowScriptingInterface::openWebBrowser() { | |
| 643 | + if (QThread::currentThread() != thread()) { | |
| 644 | + QMetaObject::invokeMethod(this, "openWebBrowser", Qt::QueuedConnection); | |
| 645 | + return; | |
| 646 | + } | |
| 647 | + | |
| 648 | + auto offscreenUi = DependencyManager::get<OffscreenUi>(); | |
| 649 | + offscreenUi->load("Browser.qml"); | |
| 650 | +} | |