11
11
/// You may add additional accurate notices of copyright ownership.
12
12
/// </license>
13
13
/// <created> 2016-04 </created>
14
- /// <edited> 2022-04 </edited>
14
+ /// <edited> 2022-09 </edited>
15
15
namespace Ordisoftware . Hebrew . Calendar ;
16
16
17
17
/// <summary>
@@ -89,7 +89,8 @@ private void DoScreenPosition(object sender, EventArgs e)
89
89
/// </summary>
90
90
private void UpdateTitles ( bool force = false )
91
91
{
92
- if ( ! Globals . IsReady || Globals . IsGenerating ) return ;
92
+ if ( ! Globals . IsReady ) return ;
93
+ if ( Globals . IsProcessingData ) return ;
93
94
if ( UpdateTitlesMutex ) return ;
94
95
UpdateTitlesMutex = true ;
95
96
try
@@ -179,8 +180,8 @@ public void UpdateButtons()
179
180
SystemManager . TryCatchManage ( ( ) =>
180
181
{
181
182
if ( LoadingForm . Instance . Visible ) LoadingForm . Instance . Hide ( ) ;
182
- MenuTray . Enabled = Globals . IsReady && ! Globals . IsGenerating ;
183
- ToolStrip . Enabled = ! Globals . IsGenerating ;
183
+ MenuTray . Enabled = Globals . IsReady && ! Globals . IsProcessingData ;
184
+ ToolStrip . Enabled = ! Globals . IsProcessingData ;
184
185
ActionSaveToFile . Enabled = LunisolarDays . Count > 0 ;
185
186
ActionCopyToClipboard . Enabled = ActionSaveToFile . Enabled ;
186
187
ActionPrint . Enabled = ActionSaveToFile . Enabled && Settings . CurrentView != ViewMode . Grid ;
@@ -198,7 +199,7 @@ public void UpdateButtons()
198
199
/// </summary>
199
200
public void UpdateCalendarMonth ( bool doFill )
200
201
{
201
- Globals . IsGenerating = true ;
202
+ Globals . IsRendering = true ;
202
203
var cursor = Cursor ;
203
204
Cursor = Cursors . WaitCursor ;
204
205
bool formEnabled = Enabled ;
@@ -213,7 +214,7 @@ public void UpdateCalendarMonth(bool doFill)
213
214
{
214
215
ToolStrip . Enabled = formEnabled ;
215
216
Cursor = cursor ;
216
- Globals . IsGenerating = false ;
217
+ Globals . IsRendering = false ;
217
218
SetView ( Settings . CurrentView , true ) ;
218
219
UpdateButtons ( ) ;
219
220
}
0 commit comments