mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
bugfix: make it able to be toggled, fix bug in crash on installation
This commit is contained in:
@@ -47,7 +47,7 @@ final class InstallAppOperation: ResultOperation<InstalledApp>
|
||||
|
||||
let backgroundContext = DatabaseManager.shared.persistentContainer.newBackgroundContext()
|
||||
backgroundContext.perform {
|
||||
UIApplication.shared.isIdleTimerDisabled = true
|
||||
|
||||
|
||||
/* App */
|
||||
let installedApp: InstalledApp
|
||||
@@ -202,7 +202,6 @@ final class InstallAppOperation: ResultOperation<InstalledApp>
|
||||
do {
|
||||
try install_ipa(installedApp.bundleIdentifier)
|
||||
installing = false
|
||||
UIApplication.shared.isIdleTimerDisabled = false
|
||||
installedApp.refreshedDate = Date()
|
||||
self.finish(.success(installedApp))
|
||||
} catch let error {
|
||||
|
||||
Reference in New Issue
Block a user