Common: First working version of watcher with confirmation

This commit is contained in:
Jonathan Jenne
2022-02-03 13:34:24 +01:00
parent dbe755bc94
commit 66599efcbf
2 changed files with 29 additions and 6 deletions

View File

@@ -15,6 +15,7 @@ Namespace DocumentResultList
' TODO: Hashes for checking if the opened file was modified externally
Private HashOriginalFile As String = Nothing
Private HashOpenedFile As String = Nothing
Private Const FILE_OPEN_HANDLE_INTERVAL = 2000
''' <summary>
''' List of opened files containing the filepath that was opened and the document id
@@ -74,7 +75,7 @@ Namespace DocumentResultList
If FileOpenTimer.Enabled = False Then
FileOpenTimer.Interval = 10000
FileOpenTimer.Interval = FILE_OPEN_HANDLE_INTERVAL
FileOpenTimer.Start()
End If