Revert "Fix settings done button with unsaved changes"

This reverts commit e69f27d319.
This commit is contained in:
System233 2025-02-21 05:07:02 +08:00
parent 6ae11dddfd
commit 5a2f2eadc6
2 changed files with 2 additions and 10 deletions

View file

@ -1,5 +0,0 @@
---
"roo-cline": patch
---
Fix settings done button with unsaved changes

View file

@ -173,6 +173,7 @@ const SettingsView = forwardRef<SettingsViewRef, SettingsViewProps>(({ onDone },
text: currentApiConfigName,
apiConfiguration,
})
// onDone()
setChangeDetected(false)
}
}
@ -216,11 +217,7 @@ const SettingsView = forwardRef<SettingsViewRef, SettingsViewProps>(({ onDone },
const onConfirmDialogResult = useCallback((confirm: boolean) => {
if (confirm) {
setChangeDetected(false)
// Wait for the change detection to be updated
setTimeout(() => {
confirmDialogHandler.current?.()
}, 100)
confirmDialogHandler.current?.()
}
}, [])