use event.isActionToolbar()

This commit is contained in:
Konstantin Bulenkov
2017-07-12 16:10:30 +02:00
parent 193edcaf30
commit 5f33e7aecb
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2010 JetBrains s.r.o.
* Copyright 2000-2017 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -36,7 +36,7 @@ public class ToggleUseSoftWrapsMenuAction extends AbstractToggleUseSoftWrapsActi
@Override
public void update(@NotNull AnActionEvent e){
super.update(e);
if (!ActionPlaces.isToolbarPlace(e.getPlace())) {
if (!e.isActionToolbar()) {
e.getPresentation().setIcon(null);
}
if (ActionPlaces.UNKNOWN.equals(e.getPlace())) {