mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-01 17:24:48 +00:00
shell: Fix WallpaperSelector
This commit is contained in:
parent
1cf51ae694
commit
f4aec3f0fc
1 changed files with 4 additions and 9 deletions
|
|
@ -2,9 +2,9 @@
|
||||||
// SPDX-FileCopyrightText: 2022 Devin Lin <devin@kde.org>
|
// SPDX-FileCopyrightText: 2022 Devin Lin <devin@kde.org>
|
||||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
import QtQuick 2.12
|
import QtQuick
|
||||||
import QtQuick.Layouts 1.0
|
import QtQuick.Layouts
|
||||||
import QtQuick.Window 2.15
|
import QtQuick.Window
|
||||||
import QtQuick.Controls 2.3 as Controls
|
import QtQuick.Controls 2.3 as Controls
|
||||||
import org.kde.plasma.core as PlasmaCore
|
import org.kde.plasma.core as PlasmaCore
|
||||||
import org.kde.plasma.configuration 2.0
|
import org.kde.plasma.configuration 2.0
|
||||||
|
|
@ -20,11 +20,6 @@ Controls.Drawer {
|
||||||
|
|
||||||
required property bool horizontal
|
required property bool horizontal
|
||||||
|
|
||||||
onClosed: {
|
|
||||||
if (!root.appComponent.visible) {
|
|
||||||
configDialog.close()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
onOpened: {
|
onOpened: {
|
||||||
wallpapersView.forceActiveFocus()
|
wallpapersView.forceActiveFocus()
|
||||||
}
|
}
|
||||||
|
|
@ -46,7 +41,7 @@ Controls.Drawer {
|
||||||
keyNavigationEnabled: true
|
keyNavigationEnabled: true
|
||||||
highlightFollowsCurrentItem: true
|
highlightFollowsCurrentItem: true
|
||||||
snapMode: ListView.SnapToItem
|
snapMode: ListView.SnapToItem
|
||||||
model: imageWallpaper.slidePaths
|
model: imageWallpaper.wallpaperModel
|
||||||
// onCountChanged: currentIndex = Math.min(model.indexOf(configDialog.wallpaperConfiguration["Image"]), model.rowCount()-1)
|
// onCountChanged: currentIndex = Math.min(model.indexOf(configDialog.wallpaperConfiguration["Image"]), model.rowCount()-1)
|
||||||
headerPositioning: ListView.PullBackHeader
|
headerPositioning: ListView.PullBackHeader
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue