mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-06 06:21:16 +07:00
IDEA-23184 Always on top detachable windows doesn't make sense on MacOS.
This commit is contained in:
@@ -465,12 +465,6 @@ public class LightToolWindow extends JPanel {
|
||||
ToggleWindowedModeAction() {
|
||||
super(ToolWindowType.WINDOWED, InternalDecorator.TOGGLE_WINDOWED_MODE_ACTION_ID);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void update(@NotNull AnActionEvent e) {
|
||||
super.update(e);
|
||||
e.getPresentation().setEnabledAndVisible(!SystemInfo.isMac);
|
||||
}
|
||||
}
|
||||
|
||||
private class ToggleTypeModeAction extends ToggleAction {
|
||||
|
||||
@@ -20,7 +20,6 @@ import com.intellij.openapi.actionSystem.Presentation;
|
||||
import com.intellij.openapi.actionSystem.ToggleAction;
|
||||
import com.intellij.openapi.project.DumbAware;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.util.SystemInfo;
|
||||
import com.intellij.openapi.wm.ToolWindowManager;
|
||||
import com.intellij.openapi.wm.ToolWindowType;
|
||||
import com.intellij.openapi.wm.ex.ToolWindowEx;
|
||||
@@ -64,10 +63,6 @@ public class ToggleWindowedModeAction extends ToggleAction implements DumbAware
|
||||
public void update(AnActionEvent event) {
|
||||
super.update(event);
|
||||
Presentation presentation = event.getPresentation();
|
||||
if (SystemInfo.isMac) {
|
||||
presentation.setEnabledAndVisible(false);
|
||||
return;
|
||||
}
|
||||
Project project = event.getProject();
|
||||
if (project == null) {
|
||||
presentation.setEnabled(false);
|
||||
|
||||
@@ -628,14 +628,6 @@ public final class InternalDecorator extends JPanel implements Queryable, DataPr
|
||||
fireTypeChanged(ToolWindowType.WINDOWED);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void update(@NotNull AnActionEvent e) {
|
||||
super.update(e);
|
||||
if (SystemInfo.isMac) {
|
||||
e.getPresentation().setEnabledAndVisible(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private final class ToggleSideModeAction extends ToggleAction implements DumbAware {
|
||||
|
||||
Reference in New Issue
Block a user