From c0400446bcc06ed042a479fdd5ede1d4fe8931de Mon Sep 17 00:00:00 2001 From: Magesh K <47920326+mahee96@users.noreply.github.com> Date: Sun, 16 Feb 2025 21:32:24 +0530 Subject: [PATCH] - Settings-Fix: deselect rows after user selection and before performing actions --- AltStore/Settings/SettingsViewController.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/AltStore/Settings/SettingsViewController.swift b/AltStore/Settings/SettingsViewController.swift index 41cf6f60..a5d178b2 100644 --- a/AltStore/Settings/SettingsViewController.swift +++ b/AltStore/Settings/SettingsViewController.swift @@ -1238,6 +1238,7 @@ extension SettingsViewController } case .operationsLoggingControl: + // Instantiate SwiftUI View inside UIHostingController let operationsLoggingControlView = OperationsLoggingControlView() let operationsLoggingController = UIHostingController(rootView: operationsLoggingControlView) @@ -1251,6 +1252,10 @@ extension SettingsViewController // case .account, .patreon, .display, .instructions, .macDirtyCow: break case .account, .patreon, .display, .instructions: break } + + + // deselect the row before returning (so that it doesn't look like stuck selected) + tableView.deselectRow(at: indexPath, animated: true) } }