浏览代码

Add comment.

Martijn Laan 1 年之前
父节点
当前提交
969320c718
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      Projects/Src/IDE.MainForm.pas

+ 4 - 0
Projects/Src/IDE.MainForm.pas

@@ -6119,6 +6119,10 @@ begin
   ApplyMenuBitmaps(Sender as TMenuItem);
 end;
 
+{ Should always be called when one of the Enabled states would change because
+  other code depends on the states being correct always even if the user never
+  clicks the Run menu. This is unlike the other menus. Note: also updates
+  BCompile and BStopCompile from the Build menu. }
 procedure TMainForm.UpdateRunMenu;
 begin
   CheckIfTerminated;