re-show restart card after subsequent credential changes

Reset the dismissed ref when navigating back to Providers so new
credential changes surface the restart notice again.

Signed-off-by: morgmart <98432065+morgmart@users.noreply.github.com>
This commit is contained in:
morgmart
2026-04-14 15:01:10 -07:00
parent a5204b668e
commit 06deb29669
@@ -140,7 +140,9 @@ export function SettingsModal({
}, [showRestartCard]);
useEffect(() => {
if (activeSection !== "providers" && showRestartCard) {
if (activeSection === "providers") {
restartDismissedRef.current = false;
} else if (showRestartCard) {
setRestartCardVisible(false);
setShowRestartCard(false);
restartDismissedRef.current = true;