Fix/error dialog on disposed rowlist (#196)

* Dispose tasks when disposing a view

* Do not show dialog on disposed views
This commit is contained in:
Brahim Hadriche authored and GitHub committed 2023-11-08 13:43:21 -05:00
1 parent 2eb0cf88af
commit 59ed47108d
3 files changed
+6 -2

No files matched your search

@@ -1,6 +1,5 @@
import "pkg:/components/ChannelView/ChannelUtils.bs"
import "pkg:/components/ContextMenu/ContextMenuUtils.bs"
import "pkg:/components/Dialog/DialogUtils.bs"
import "pkg:/components/Navigation/LongPress.bs"
import "pkg:/components/PlaylistView/PlaylistUtils.bs"
import "pkg:/components/VideoFeed/VideoRowListContentTask.bs"
@@ -315,5 +314,6 @@ function OnkeyEvent(key as string, press as boolean) as boolean
end function
function OnDispose()
CancelCurrentTasks()
DisposeObservers()
end function