fix: App detail view: App on/off doesn't change the status

Closes #229 (closed)

NOTE

  • Prior to this change, protectedApps and cachedApps are 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 and protectAllApps (Boolean) is false.
  • Setting the initial values for protectedApps and cachedApps properly when loadApps() 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

Merge request reports

Loading