mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-03 18:24:46 +00:00
open settings app
close panel when app launches
This commit is contained in:
parent
89f1f1a8af
commit
d93ec09964
4 changed files with 10 additions and 3 deletions
|
|
@ -157,7 +157,7 @@ Item {
|
||||||
|
|
||||||
ListModel {
|
ListModel {
|
||||||
id: notificationsModel
|
id: notificationsModel
|
||||||
/* ListElement {
|
ListElement {
|
||||||
source: "call1Source"
|
source: "call1Source"
|
||||||
appIcon: "call-start"
|
appIcon: "call-start"
|
||||||
summary: "Missed call from Joe"
|
summary: "Missed call from Joe"
|
||||||
|
|
@ -178,7 +178,7 @@ Item {
|
||||||
appName: "Message"
|
appName: "Message"
|
||||||
summary: "July: Hello?"
|
summary: "July: Hello?"
|
||||||
actions: []
|
actions: []
|
||||||
}*/
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ListView {
|
ListView {
|
||||||
|
|
|
||||||
|
|
@ -68,7 +68,7 @@ Item {
|
||||||
text: "Settings"
|
text: "Settings"
|
||||||
icon: "configure"
|
icon: "configure"
|
||||||
enabled: false
|
enabled: false
|
||||||
settingsCommand: "plasma-mobile-settings"
|
settingsCommand: "plasma-settings"
|
||||||
toggleFunction: ""
|
toggleFunction: ""
|
||||||
delegate: ""
|
delegate: ""
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -54,10 +54,16 @@ FullScreenPanel {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
onActiveChanged: {
|
||||||
|
if (!active) {
|
||||||
|
close();
|
||||||
|
}
|
||||||
|
}
|
||||||
onVisibleChanged: {
|
onVisibleChanged: {
|
||||||
if (visible) {
|
if (visible) {
|
||||||
window.width = Screen.width;
|
window.width = Screen.width;
|
||||||
window.height = Screen.height;
|
window.height = Screen.height;
|
||||||
|
window.requestActivate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
SequentialAnimation {
|
SequentialAnimation {
|
||||||
|
|
|
||||||
|
|
@ -240,6 +240,7 @@ PlasmaCore.ColorScope {
|
||||||
property var applet
|
property var applet
|
||||||
height: applet ? applet.fullRepresentationItem.Layout.maximumHeight : 0
|
height: applet ? applet.fullRepresentationItem.Layout.maximumHeight : 0
|
||||||
property int minimumHeight: applet ? applet.fullRepresentationItem.Layout.minimumHeight : 0
|
property int minimumHeight: applet ? applet.fullRepresentationItem.Layout.minimumHeight : 0
|
||||||
|
onHeightChanged: slidingPanel.updateState();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue