mirror of
https://github.com/neon443/ShhShell.git
synced 2026-03-11 13:26:16 +00:00
add idle timer disablied thingy
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user