1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-05-11 06:49:37 -04:00

fix(Settings): Update card registration logic to fix binded crash

This commit is contained in:
purian23
2026-05-10 21:47:15 -04:00
parent 4193cf51ff
commit c7d44cfb12
6 changed files with 46 additions and 20 deletions

View File

@@ -32,9 +32,14 @@ DankToggle {
Component.onCompleted: {
if (!settingKey)
return;
let flickable = findParentFlickable();
if (flickable)
SettingsSearchService.registerCard(settingKey, root, flickable);
var key = settingKey;
Qt.callLater(() => {
if (!root.parent)
return;
var flickable = findParentFlickable();
if (flickable)
SettingsSearchService.registerCard(key, root, flickable);
});
}
Component.onDestruction: {