mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-07-31 16:54:46 +00:00
homescreens/folio: Ensure applets list closes when settings is closed
This commit is contained in:
parent
89efc8bc7f
commit
7aae8c7fbc
1 changed files with 11 additions and 0 deletions
|
|
@ -23,6 +23,17 @@ Item {
|
||||||
|
|
||||||
readonly property bool homeScreenInteractive: !appletListViewer.open
|
readonly property bool homeScreenInteractive: !appletListViewer.open
|
||||||
|
|
||||||
|
Connections {
|
||||||
|
target: folio.HomeScreenState
|
||||||
|
|
||||||
|
// Close applet viewer when settings view closes
|
||||||
|
function onViewStateChanged() {
|
||||||
|
if (folio.HomeScreenState.viewState !== Folio.HomeScreenState.SettingsView) {
|
||||||
|
appletListViewer.requestClose();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
id: closeSettings
|
id: closeSettings
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue