mirror of https://github.com/buggins/dlangide.git
fix #339 - disable File/Create/New File if no workspace and project opened
This commit is contained in:
parent
9c50cab5de
commit
20fbdea809
|
@ -897,6 +897,9 @@ class IDEFrame : AppFrame, ProgramExecutionStatusListener, BreakpointListChangeL
|
||||||
else
|
else
|
||||||
a.state = ACTION_STATE_DISABLE;
|
a.state = ACTION_STATE_DISABLE;
|
||||||
return true;
|
return true;
|
||||||
|
case IDEActions.FileNew:
|
||||||
|
a.state = (currentWorkspace && currentWorkspace.startupProject) ? ACTION_STATE_ENABLED : ACTION_STATE_DISABLE;
|
||||||
|
return true;
|
||||||
case IDEActions.HelpAbout:
|
case IDEActions.HelpAbout:
|
||||||
case StandardAction.OpenUrl:
|
case StandardAction.OpenUrl:
|
||||||
// always enabled
|
// always enabled
|
||||||
|
|
Loading…
Reference in New Issue