mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
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:
parent
28347fe650
commit
6a40c0e486
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user