mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
Cloud: clear cached settings if already logged-out at startup (#4264)
This commit is contained in:
parent
af2e9ed725
commit
900de7b401
1 changed files with 5 additions and 0 deletions
|
|
@ -39,6 +39,11 @@ export class SettingsService {
|
|||
public initialize(): void {
|
||||
this.loadCachedSettings()
|
||||
|
||||
// Clear cached settings if we have missed a log out.
|
||||
if (this.authService.getState() == "logged-out" && this.settings) {
|
||||
this.removeSettings()
|
||||
}
|
||||
|
||||
this.authService.on("active-session", () => {
|
||||
this.timer.start()
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue