Smol fixes

This commit is contained in:
Jonathan Jenne 2023-09-22 14:22:20 +02:00
parent 74a9dbc486
commit 260b81f0c4
2 changed files with 7 additions and 12 deletions

View File

@ -244,8 +244,8 @@ Namespace slt
Logger.Debug("Fetching document details with ExtDocId [{0}]", pDocument.ExtDocId)
Dim oSQL = $"SELECT DOCORIGINALNAME
FROM {Config.sltConfiguration.sltDatabase}
WHERE EXT_DOC_ID = {pDocument.ExtDocId}"
FROM {Config.sltConfiguration.sltDatabase}.[EXTDOCS]
WHERE EXTDOCID = '{pDocument.ExtDocId}'"
Dim oResult As Object = Await Database.GetScalarValueAsync(oSQL)
Dim oFileNameOriginal As String = ObjectEx.NotNull(Of String)(oResult.ToString, "")

View File

@ -71,7 +71,7 @@ Partial Public Class frmMain
Exit Sub
End If
If Sync.TestConfigIsComplete() Then
If Sync.TestConfigIsComplete() = False Then
AddWarnEntry("Configuration is incomplete, check your configuration!")
Exit Sub
End If
@ -154,15 +154,10 @@ Partial Public Class frmMain
End Function
Private Sub StartTimer()
If Sync.TestConfigIsComplete() = False Then
AddInfoEntry("Configuration is incomplete. Stopping.")
AddDivider()
Else
AddInfoEntry("Starting timer..")
btnStopSync.Enabled = True
btnSyncStart.Enabled = False
SyncTimer.Enabled = True
End If
AddInfoEntry("Starting timer..")
btnStopSync.Enabled = True
btnSyncStart.Enabled = False
SyncTimer.Enabled = True
End Sub
Private Sub StopTimer()