launcher: fix wallpaper preview exit
This commit is contained in:
parent
ae12e0d4f8
commit
c5f8146e05
1 changed files with 1 additions and 3 deletions
|
|
@ -17,7 +17,7 @@ Item {
|
||||||
required property int rounding
|
required property int rounding
|
||||||
|
|
||||||
readonly property bool showWallpapers: search.text.startsWith(`${Config.launcher.actionPrefix}wallpaper `)
|
readonly property bool showWallpapers: search.text.startsWith(`${Config.launcher.actionPrefix}wallpaper `)
|
||||||
property var currentList
|
readonly property Item currentList: showWallpapers ? wallpaperList.item : appList.item
|
||||||
|
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
|
|
@ -30,7 +30,6 @@ Item {
|
||||||
name: "apps"
|
name: "apps"
|
||||||
|
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
root.currentList: appList.item
|
|
||||||
root.implicitWidth: Config.launcher.sizes.itemWidth
|
root.implicitWidth: Config.launcher.sizes.itemWidth
|
||||||
root.implicitHeight: appList.implicitHeight > 0 ? appList.implicitHeight : empty.implicitHeight
|
root.implicitHeight: appList.implicitHeight > 0 ? appList.implicitHeight : empty.implicitHeight
|
||||||
appList.active: true
|
appList.active: true
|
||||||
|
|
@ -45,7 +44,6 @@ Item {
|
||||||
name: "wallpapers"
|
name: "wallpapers"
|
||||||
|
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
root.currentList: wallpaperList.item
|
|
||||||
root.implicitWidth: Math.max(Config.launcher.sizes.itemWidth * 1.2, wallpaperList.implicitWidth)
|
root.implicitWidth: Math.max(Config.launcher.sizes.itemWidth * 1.2, wallpaperList.implicitWidth)
|
||||||
root.implicitHeight: Config.launcher.sizes.wallpaperHeight
|
root.implicitHeight: Config.launcher.sizes.wallpaperHeight
|
||||||
wallpaperList.active: true
|
wallpaperList.active: true
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue