[Refresh]: Remove install stuffs from refresh since in refresh should only renew provisioning profiles (#846)

This commit is contained in:
Magesh K
2025-01-19 08:06:41 +05:30
committed by GitHub
parent 341e498b3f
commit 332f56324c
4 changed files with 166 additions and 110 deletions

View File

@@ -1151,7 +1151,9 @@ private extension MyAppsViewController
func refresh(_ installedApp: InstalledApp)
{
guard minimuxerStatus else { return }
// we do need minimuxer, coz it needs to talk to misagent daemon which manages profiles
// so basically loopback vpn is still required
guard minimuxerStatus else { return } // we don't need minimuxer when renewing appIDs only do we, heck we can even do it on mobile internet
let previousProgress = AppManager.shared.refreshProgress(for: installedApp)
guard previousProgress == nil else {
@@ -1467,7 +1469,10 @@ private extension MyAppsViewController
do
{
let tempApp = context.object(with: installedApp.objectID) as! InstalledApp
tempApp.needsResign = true
tempApp.needsResign = true // why do we want to resign it during refresh ?!!!!
// I see now, so here we just mark that icon needs to be changed but leave it for refresh/install to do it
// this is bad, coz now the weight of installing goes to refresh step !!! which is not what we want
tempApp.hasAlternateIcon = (image != nil)
if let image = image