Forum Archive

tableview_delete issue [FIXED]

Dann239

When I delete a cell, the delete button doesn't disappear and the cell remains. If I call .reload() Pythonista crashes. Only two lines after tableview_delete, removing the related data from my list and .reload()

... I'm willing to post the entire script if need be, it is just messy at the moment.

ccc

What was the solution? Why was this happening?

Dann239

I don't understand the decorator @ui.in_background and how it works... However, a function is ran to delete the item from a list. I threw that decorator in above the function I was running and it worked.