bugfix: make it able to be toggled, fix bug in crash on installation

This commit is contained in:
junepark678
2023-11-28 00:44:47 +09:00
parent ebe78932bf
commit 2ef2e2f26b
5 changed files with 90 additions and 28 deletions

View File

@@ -948,7 +948,13 @@ private extension AppManager
}
else
{
DispatchQueue.main.schedule {
UIApplication.shared.isIdleTimerDisabled = UserDefaults.standard.isIdleTimeoutDisableEnabled
}
performAppOperations()
DispatchQueue.main.schedule {
UIApplication.shared.isIdleTimerDisabled = false
}
}
return group