Skip to content

Dashboard: Fix One-Tap-Mode sometimes not executing deletion task - #1103

Merged
d4rken merged 1 commit into
mainfrom
onetap_fix_secondary_tasks
Mar 31, 2024
Merged

Dashboard: Fix One-Tap-Mode sometimes not executing deletion task#1103
d4rken merged 1 commit into
mainfrom
onetap_fix_secondary_tasks

Conversation

@d4rken

@d4rken d4rken commented Mar 31, 2024

Copy link
Copy Markdown
Member

One-Tap-Mode was tied to the viewmodel lifecycle and a combination of the default scan-task and delete-task, if the viewmodel gets collected (e.g. due to ACS opening system settings over SD Maids main UI, than the coroutine that would have launched the follow up deletion task, is cancelled. The scan task still continues because after a task is launched, it is tied to the global app scope.

So let's fix this by just creating a special One-Click-Task that will internally perform scan + delete.

One-Tap-Mode was tied to the viewmodel lifecycle and a combination of the default scan-task and delete-task, if the viewmodel gets collected (e.g. due to ACS opening system settings over SD Maids main UI, than the coroutine that would have launched the follow up deletion task, is cancelled.
The scan task still continues because after a task is launched, it is tied to the global app scope.

So let's fix this by just creating a special One-Click-Task that will internally perform scan + delete.
@d4rken d4rken added bug Something isn't working as expected General UI/UX User Interface/Experience labels Mar 31, 2024
@d4rken
d4rken merged commit ed816bb into main Mar 31, 2024
@d4rken
d4rken deleted the onetap_fix_secondary_tasks branch March 31, 2024 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working as expected General UI/UX User Interface/Experience

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant