logout: Fix window not loading

Fixes https://invent.kde.org/teams/plasma-mobile/issues/-/issues/149

It seems that importing mobileshell here causes it to not load? ksmserver doesn't give any useful error logs though...
This commit is contained in:
Devin Lin 2022-05-27 10:16:22 -04:00
parent d74c106ecf
commit d21dd792d0
2 changed files with 0 additions and 5 deletions

View file

@ -8,7 +8,6 @@ import QtQuick 2.8
import org.kde.plasma.core 2.0 as PlasmaCore import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.plasma.components 3.0 as PlasmaComponents3 import org.kde.plasma.components 3.0 as PlasmaComponents3
import org.kde.plasma.private.mobileshell 1.0 as MobileShell
Item { Item {
id: root id: root
@ -105,7 +104,6 @@ Item {
id: mouseArea id: mouseArea
hoverEnabled: true hoverEnabled: true
onClicked: root.clicked() onClicked: root.clicked()
onPressed: MobileShell.Haptics.buttonVibrate();
anchors.fill: parent anchors.fill: parent
} }

View file

@ -13,7 +13,6 @@ import QtQuick.Controls 2.8 as Controls
import org.kde.plasma.core 2.0 as PlasmaCore import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.kcoreaddons 1.0 as KCoreAddons import org.kde.kcoreaddons 1.0 as KCoreAddons
import org.kde.plasma.private.mobileshell 1.0 as MobileShell
import org.kde.plasma.private.sessions 2.0 import org.kde.plasma.private.sessions 2.0
PlasmaCore.ColorScope { PlasmaCore.ColorScope {
@ -28,8 +27,6 @@ PlasmaCore.ColorScope {
signal cancelRequested() signal cancelRequested()
signal lockScreenRequested() signal lockScreenRequested()
Component.onCompleted: MobileShell.Haptics.buttonVibrate();
Controls.Action { Controls.Action {
onTriggered: root.cancelRequested() onTriggered: root.cancelRequested()
shortcut: "Escape" shortcut: "Escape"