IJPL-180867 Merged menu does not collapse until IDE resized on Linux

Previously, MainToolbar.removeNotify() would remove all widthCalculationListeners. But these listeners were added not by MainToolbar.addNotify, but by ToolbarFrameHeader.addNotify, so they shouldn't be managed by MainToolbar.

GitOrigin-RevId: a7c7529c45e0ef7d08742e368a85f5187ae180f8
This commit is contained in:
Aydar Mukhametzyanov
2025-03-24 20:32:19 +00:00
committed by intellij-monorepo-bot
parent e911f0fd35
commit 4a6cd383db
@@ -339,7 +339,6 @@ class MainToolbar(
super.removeNotify()
if (ScreenUtil.isStandardAddRemoveNotify(this)) {
coroutineScope.cancel()
widthCalculationListeners.clear()
}
}