fix: App detail view: App on/off doesn't change the status
Closes #229 (closed)
NOTE
- Prior to this change,
protectedAppsandcachedAppsare empty when the app is started. - Changing the status of a single app actually turns off protection for all apps since
protectedApps(List) is empty andprotectAllApps(Boolean) is false. - Setting the initial values for
protectedAppsandcachedAppsproperly whenloadApps()is called fixes this issue.
PROPOSAL
We should eliminate protectAllApps and use a utility function that gives the diff of protectedApps and queryInstalledApps()
Edited by Norbel