mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Do not show Emoji picker action on Windows and macOS
GitOrigin-RevId: 17609d697baa00bd1ba536bea6911f312f71ff55
This commit is contained in:
committed by
intellij-monorepo-bot
parent
186744933a
commit
991957c1aa
+3
-1
@@ -10,6 +10,7 @@ import com.intellij.openapi.editor.impl.EditorImpl;
|
||||
import com.intellij.openapi.project.DumbAwareAction;
|
||||
import com.intellij.openapi.ui.TypingTarget;
|
||||
import com.intellij.openapi.ui.popup.JBPopup;
|
||||
import com.intellij.openapi.util.SystemInfo;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.plugins.emojipicker.ui.EmojiPicker;
|
||||
import org.jetbrains.plugins.emojipicker.ui.EmojiSearchField;
|
||||
@@ -85,7 +86,8 @@ public class OpenEmojiPickerAction extends DumbAwareAction {
|
||||
|
||||
@Override
|
||||
public void update(@NotNull AnActionEvent e) {
|
||||
e.getPresentation().setEnabledAndVisible(getContext(e, true) == Context.FOUND);
|
||||
boolean enabled = SystemInfo.isLinux && getContext(e, true) == Context.FOUND;
|
||||
e.getPresentation().setEnabledAndVisible(enabled);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user