bugfix: deprecation warning

Log warning

> Parameter "index" is not declared. Injection of parameters into signal handlers is deprecated. Use JavaScript functions with formal parameters instead.
> Parameter "object" is not declared. Injection of parameters into signal handlers is deprecated. Use JavaScript functions with formal parameters instead.

Signed-off-by: Rello <Rello@users.noreply.github.com>
This commit is contained in:
Rello 2025-09-17 09:31:20 +07:00 committed by Matthieu Gallien
parent 28347fe650
commit 6a40c0e486

View File

@ -79,8 +79,12 @@ Button {
onClicked: UserModel.currentUserId = model.index;
}
}
onObjectAdded: accountMenu.insertItem(index, object)
onObjectRemoved: accountMenu.removeItem(object)
onObjectAdded: function(index, object) {
accountMenu.insertItem(index, object)
}
onObjectRemoved: function(index, object) {
accountMenu.removeItem(object)
}
}
MenuItem {