diff options
| author | Niel Lebeck <niel.lebeck@gmail.com> | 2025-02-02 11:58:45 -0800 |
|---|---|---|
| committer | Niel Lebeck <niel.lebeck@gmail.com> | 2025-02-02 12:24:51 -0800 |
| commit | 56fd1f39d82d13cbfecd8b75937dd93bb8205e2f (patch) | |
| tree | e7f7c33c816bba7867a03309668d8b1a211c3806 /Externals/cpp-optparse/cpp-optparse.vcxproj | |
| parent | 84d28a4272f53df30550b43aaafafde1a520aeb0 (diff) | |
Eliminate TaskViewModel's mustRestartApp field
Instead of having UserDataImportWarningDialog set an
`onResultDismiss` callback that examines `mustRestartApp`, and having
UserDataActivity set `mustRestartApp`, just have UserDataActivity set
the callback directly.
This approach is no more data-race-y than the previous approach, and it
simplifies the code. (The behavior of restarting the app when the task
finishes is specific to the user data import flow, and there is no
reason for TaskViewModel to be directly aware of it.)
Diffstat (limited to 'Externals/cpp-optparse/cpp-optparse.vcxproj')
0 files changed, 0 insertions, 0 deletions
