Skip to content

Commit

Permalink
check if projectAutoSaver is initialized before updating its enabled …
Browse files Browse the repository at this point in the history
…property
  • Loading branch information
xulihang committed Jun 17, 2023
1 parent 899033f commit d82e6e6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion BasicCAT/BasicCAT.b4j
Original file line number Diff line number Diff line change
Expand Up @@ -2204,7 +2204,9 @@ Public Sub changeAutoSaveInterval(seconds As Int)
End Sub

Public Sub enableAutosaveTimer(enabled As Boolean)
projectAutoSaver.Enabled=enabled
If projectAutoSaver.IsInitialized Then
projectAutoSaver.Enabled=enabled
End If
End Sub

Sub MainForm_FocusChanged (HasFocus As Boolean)
Expand Down

0 comments on commit d82e6e6

Please sign in to comment.