add idle timer disablied thingy

This commit is contained in:
neon443
2025-08-24 19:03:00 +01:00
parent f8951516e0
commit d40ef8e03c

View File

@@ -149,6 +149,9 @@ struct ShellTabView: View {
}
}
.frame(height: 30)
.onDisappear {
UIApplication.shared.isIdleTimerDisabled = false
}
.onAppear {
if selectedID == nil {
if let handler {
@@ -157,6 +160,7 @@ struct ShellTabView: View {
dismiss()
}
}
UIApplication.shared.isIdleTimerDisabled = hostsManager.settings.caffeinate
}
}