mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-06 08:18:39 +00:00
Revert "Fix settings done button with unsaved changes"
This reverts commit e69f27d319.
This commit is contained in:
parent
6ae11dddfd
commit
5a2f2eadc6
2 changed files with 2 additions and 10 deletions
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
"roo-cline": patch
|
||||
---
|
||||
|
||||
Fix settings done button with unsaved changes
|
||||
|
|
@ -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?.()
|
||||
}
|
||||
}, [])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue