diff --git a/flutter-idea/src/io/flutter/editor/NativeEditorNotificationProvider.java b/flutter-idea/src/io/flutter/editor/NativeEditorNotificationProvider.java index 1866a59d82..1f21ab7ecd 100644 --- a/flutter-idea/src/io/flutter/editor/NativeEditorNotificationProvider.java +++ b/flutter-idea/src/io/flutter/editor/NativeEditorNotificationProvider.java @@ -10,6 +10,7 @@ import com.intellij.openapi.project.DumbAware; import com.intellij.openapi.project.Project; import com.intellij.openapi.util.Key; +import com.intellij.openapi.util.SystemInfo; import com.intellij.openapi.util.io.FileUtil; import com.intellij.openapi.vfs.VirtualFile; import com.intellij.ui.EditorNotificationPanel; @@ -20,8 +21,6 @@ import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; -// TODO(devoncarew): Are we showing the 'Open in Xcode' editor action on non-mac platforms? - public class NativeEditorNotificationProvider extends EditorNotifications.Provider implements DumbAware { private static final Key KEY = Key.create("flutter.native.editor.notification"); @@ -77,15 +76,15 @@ private static String getActionName(@Nullable VirtualFile root) { // return "flutter.androidstudio.open"; //} //else - if (root.getName().equals("ios")) { - return "flutter.xcode.open"; - } - else if (root.getName().equals("macos")) { - return "flutter.xcode.open"; - } - else { - return null; + if (SystemInfo.isMac) { + if (root.getName().equals("ios")) { + return "flutter.xcode.open"; + } + else if (root.getName().equals("macos")) { + return "flutter.xcode.open"; + } } + return null; } @Nullable