mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +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
|
||||
|
||||
Connections {
|
||||
target: folio.HomeScreenState
|
||||
|
||||
// Close applet viewer when settings view closes
|
||||
function onViewStateChanged() {
|
||||
if (folio.HomeScreenState.viewState !== Folio.HomeScreenState.SettingsView) {
|
||||
appletListViewer.requestClose();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
MouseArea {
|
||||
id: closeSettings
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue