removeAppData
Removes a single AppData element from the current list.
This function searches for an AppData element in the appDataList
that is considered the "same" as the provided element
(based on the isSame
function, which compares their appInfo
). If a match is found, it is removed from appDataList
, and then setAppDataList
is called to update the underlying data and trigger a UI refresh if necessary.
Parameters
element
The AppData object to remove.