Skip to content

Commit

Permalink
Merge pull request #11 from hhoao/fix_45_1.0.x_switch_window
Browse files Browse the repository at this point in the history
[fix] fixed all tab changes when window title changes bug
  • Loading branch information
hhoao authored Dec 9, 2023
2 parents 8fbe722 + b1a2e7b commit 2fb0876
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/TabPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,8 @@ export const TabPanel = GObject.registerClass({
tab.set_text(null);
tab.set_icon(null);
tab.fade_out();
let currentWindow = tab.get_current_window();
currentWindow?.disconnectObject(tab);
tab.set_current_window(null);
this._current_tabs_count--;
this._controls.set_child_above_sibling(tab, null);
Expand Down

0 comments on commit 2fb0876

Please sign in to comment.