How to trigger setCaption against the tab which is inactive?

Hello everyone,

I’m working on implementing a new feature that allows modified tabs to be saved automatically. However, I’ve encountered an issue with the setCaption function in shell.cpp.

From my understanding, the setCaption function seems to only be triggered for the active tab. In a scenario where tabs A and B are open, if the user modifies tab A and then switches to tab B, I’m wondering if it’s possible to update the caption for tab A while tab B is active.

Can someone confirm if my understanding is correct? And if so, is there a way to update the caption of an inactive tab (e.g., tab A) while the user is working in another tab (e.g., tab B)?

Thank you for your help!