Showing the changes to libraries/script-engine/src/TabletScriptingInterface.cpp (1 of 2 files). Show all
Unified · Split
| @@ -203,6 +203,7 @@ void TabletProxy::setQmlTabletRoot(QQuickItem* qmlTabletRoot, QObject* qmlOffscr · 202 unmodified lines | ||
| 203 | 203 | void TabletProxy::gotoMenuScreen() { |
| 204 | 204 | if (_qmlTabletRoot) { |
| 205 | 205 | if (_state != State::Menu) { |
| 206 | + removeButtonsFromHomeScreen(); | |
| 206 | 207 | auto loader = _qmlTabletRoot->findChild<QQuickItem*>("loader"); |
| 207 | 208 | QObject::connect(loader, SIGNAL(loaded()), this, SLOT(addButtonsToMenuScreen()), Qt::DirectConnection); |
| 208 | 209 | QMetaObject::invokeMethod(_qmlTabletRoot, "loadSource", Q_ARG(const QVariant&, QVariant(VRMENU_SOURCE_URL))); |