In a multi-workspace window several workspaces share one platform window. Switching the active workspace did not update the window title or edited indicator, and background workspaces could clobber the active workspace's title via their still-live project/item event subscriptions. Track the active workspace id in a shared Rc<Cell<EntityId>> owned by the MultiWorkspace and read by each member workspace, so a workspace only writes the shared window's title/edited state when it is the active one. The newly active workspace re-applies its title and edited indicator on activation. We use a Rc-cell here to avoid double lease issues as we cannot tell whether we are inside a running MultiWorkspace lease or not in the given codepaths. Release Notes: - Fixed the window title not updating when switching between workspaces in a multi-workspace window --------- Co-authored-by: Eric Holk <eric@theincredibleholk.org>
2 files changedLine totals unavailable