Hide tab title tooltips whenever the tab bar changes

This hides tooltips (such as the tab title tooltip) whenever the tab bar state
changes, such as when adding or removing a tab, to ensure we don't leave any
tooltips behind that no longer match reality.

Fixes https://github.com/zotero/zotero/issues/2060
This commit is contained in:
J. Ryan Stinnett 2021-05-17 16:58:13 +01:00
parent 5b7e01dff6
commit b27ac6649e

View file

@ -66,6 +66,8 @@ var Zotero_Tabs = new function () {
var { tab } = this._getTab(this._selectedID); var { tab } = this._getTab(this._selectedID);
document.title = (tab.title.length ? tab.title + ' - ' : '') + 'Zotero'; document.title = (tab.title.length ? tab.title + ' - ' : '') + 'Zotero';
this._updateTabBar(); this._updateTabBar();
// Hide any tab title tooltips that might be open
window.Zotero_Tooltip.stop();
}; };
this.init = function () { this.init = function () {