mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-04-28 21:59:48 +00:00
Fix the visual state of auto-save when workspaces are visible
This commit is contained in:
parent
be6638f31f
commit
a9d4283923
@ -115,7 +115,12 @@ public partial class Chat : MSGComponentBase, IAsyncDisposable
|
|||||||
if (firstRender && this.chatThread is not null && this.mustStoreChat)
|
if (firstRender && this.chatThread is not null && this.mustStoreChat)
|
||||||
{
|
{
|
||||||
this.mustStoreChat = false;
|
this.mustStoreChat = false;
|
||||||
await WorkspaceBehaviour.StoreChat(this.chatThread);
|
|
||||||
|
if(this.workspaces is not null)
|
||||||
|
await this.workspaces.StoreChat(this.chatThread);
|
||||||
|
else
|
||||||
|
await WorkspaceBehaviour.StoreChat(this.chatThread);
|
||||||
|
|
||||||
this.currentWorkspaceId = this.chatThread.WorkspaceId;
|
this.currentWorkspaceId = this.chatThread.WorkspaceId;
|
||||||
this.currentWorkspaceName = await WorkspaceBehaviour.LoadWorkspaceName(this.chatThread.WorkspaceId);
|
this.currentWorkspaceName = await WorkspaceBehaviour.LoadWorkspaceName(this.chatThread.WorkspaceId);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user