mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-84264 IdeTalk plugin: multiple messages are logged endlessly
This commit is contained in:
@@ -349,10 +349,10 @@ public final class ToolWindowImpl implements ToolWindowEx {
|
||||
|
||||
public final void setIcon(final Icon icon) {
|
||||
ApplicationManager.getApplication().assertIsDispatchThread();
|
||||
if (!(icon instanceof LayeredIcon) && (icon.getIconHeight() != 13 || icon.getIconWidth() != 13)) {
|
||||
final Icon oldIcon = getIcon();
|
||||
if (oldIcon != icon && !(icon instanceof LayeredIcon) && (icon.getIconHeight() != 13 || icon.getIconWidth() != 13)) {
|
||||
LOG.warn("ToolWindow icons should be 13x13. Please fix " + icon);
|
||||
}
|
||||
final Icon oldIcon = getIcon();
|
||||
getSelectedContent().setIcon(icon);
|
||||
myIcon = icon;
|
||||
myChangeSupport.firePropertyChange(PROP_ICON, oldIcon, icon);
|
||||
|
||||
Reference in New Issue
Block a user