From d40ef8e03cb12791ca54298fda886c6099adee09 Mon Sep 17 00:00:00 2001 From: neon443 <69979447+neon443@users.noreply.github.com> Date: Sun, 24 Aug 2025 19:03:00 +0100 Subject: [PATCH] add idle timer disablied thingy --- ShhShell/Views/Terminal/ShellTabView.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ShhShell/Views/Terminal/ShellTabView.swift b/ShhShell/Views/Terminal/ShellTabView.swift index 545fb71..fd44d78 100644 --- a/ShhShell/Views/Terminal/ShellTabView.swift +++ b/ShhShell/Views/Terminal/ShellTabView.swift @@ -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 } }