fix(layout): auto-réparer l'onglet actif
stale
Le backend renvoie l'id actif autoritaire et le
frontend l'adopte pour éviter de rejouer un layout
disparu après overwrite externe.
Co-Authored-By: Claude Opus 4.8
<noreply@anthropic.com>
This commit is contained in:
@ -48,8 +48,8 @@ export class TauriLayoutGateway implements LayoutGateway {
|
||||
});
|
||||
}
|
||||
|
||||
setActiveLayout(projectId: string, layoutId: string): Promise<void> {
|
||||
return invoke<void>("set_active_layout", {
|
||||
setActiveLayout(projectId: string, layoutId: string): Promise<{ activeId: string }> {
|
||||
return invoke<{ activeId: string }>("set_active_layout", {
|
||||
request: { projectId, layoutId },
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user