Merge pull request #10959 from druiz17/bug/wrong-tablet-state

Fix tablet scripting interface setting its internal state to home when switching between toolbar and tablet mode
This commit is contained in:
druiz17 2017-07-14 14:31:04 -07:00 committed by GitHub
commit 3b112450f0

View file

@ -227,7 +227,6 @@ void TabletProxy::setToolbarMode(bool toolbarMode) {
// forward qml surface events to interface js
connect(tabletRootWindow, &QmlWindowClass::fromQml, this, &TabletProxy::fromQml);
} else {
_state = State::Home;
removeButtonsFromToolbar();
addButtonsToHomeScreen();
emit screenChanged(QVariant("Home"), QVariant(TABLET_SOURCE_URL));