diff options
| -rw-r--r-- | popups/launcher/components/Emoji.qml | 1 | ||||
| -rw-r--r-- | popups/launcher/components/Spell.qml | 19 |
2 files changed, 9 insertions, 11 deletions
diff --git a/popups/launcher/components/Emoji.qml b/popups/launcher/components/Emoji.qml index d4bc54f..4e3a58d 100644 --- a/popups/launcher/components/Emoji.qml +++ b/popups/launcher/components/Emoji.qml @@ -27,7 +27,6 @@ IComponent { return; } selectedIndex = emojis.length > 0 ? 0 : -1; - syncSelectionState(); if (loader.item && loader.item.flickable) loader.item.flickable.contentY = 0; }); diff --git a/popups/launcher/components/Spell.qml b/popups/launcher/components/Spell.qml index b081caa..cfe315f 100644 --- a/popups/launcher/components/Spell.qml +++ b/popups/launcher/components/Spell.qml @@ -27,16 +27,15 @@ IComponent { } onAspellChanged: { - if (selectedIndex !== -1) { - syncSelectionState(); - return; - } - selectedIndex = aspell.length > 0 ? 0 : -1; - // selectedIndexChanged dont get called somehow - syncSelectionState(); - if (loader.item && loader.item.flickable) { - loader.item.flickable.contentY = 0; - } + Qt.callLater(() => { + if (selectedIndex !== -1) { + syncSelectionState(); + return; + } + selectedIndex = aspell.length > 0 ? 0 : -1; + if (loader.item && loader.item.flickable) + loader.item.flickable.contentY = 0; + }); } onSelectedIndexChanged: { |
