Changes for issue #27
This commit is contained in:
Generated
+1
-1
@@ -224,7 +224,7 @@ Partial Class frmMain
|
|||||||
'
|
'
|
||||||
Me.txtLog.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
Me.txtLog.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
Me.txtLog.Location = New System.Drawing.Point(12, 184)
|
Me.txtLog.Location = New System.Drawing.Point(12, 184)
|
||||||
Me.txtLog.MaxLength = 16777216
|
Me.txtLog.MaxLength = 524288
|
||||||
Me.txtLog.Multiline = True
|
Me.txtLog.Multiline = True
|
||||||
Me.txtLog.Name = "txtLog"
|
Me.txtLog.Name = "txtLog"
|
||||||
Me.txtLog.ReadOnly = True
|
Me.txtLog.ReadOnly = True
|
||||||
|
|||||||
+11
-6
@@ -1050,12 +1050,17 @@ Public Class frmMain
|
|||||||
Dim d As New UpdateLogCallBack(AddressOf UpdateLog)
|
Dim d As New UpdateLogCallBack(AddressOf UpdateLog)
|
||||||
Me.Invoke(d, New Object() {sLogUpdate, bTrayUpdate, objIcon, bTimeStamp})
|
Me.Invoke(d, New Object() {sLogUpdate, bTrayUpdate, objIcon, bTimeStamp})
|
||||||
Else
|
Else
|
||||||
'Auto save and clear the log if we are approaching the limit
|
'Auto save and/or clear the log if we are approaching the limit
|
||||||
If txtLog.TextLength > 16770000 Then
|
If txtLog.TextLength > 262144 Then
|
||||||
Dim sLogFile As String = mgrPath.LogFileLocation
|
If oSettings.AutoSaveLog Then
|
||||||
mgrCommon.SaveText(txtLog.Text, sLogFile)
|
Dim sLogFile As String = mgrPath.LogFileLocation
|
||||||
txtLog.Clear()
|
mgrCommon.SaveText(txtLog.Text, sLogFile)
|
||||||
txtLog.AppendText("[" & Date.Now & "] " & mgrCommon.FormatString(frmMain_LogAutoSave, sLogFile))
|
txtLog.Clear()
|
||||||
|
txtLog.AppendText("[" & Date.Now & "] " & mgrCommon.FormatString(frmMain_LogAutoSave, sLogFile))
|
||||||
|
Else
|
||||||
|
txtLog.Clear()
|
||||||
|
txtLog.AppendText("[" & Date.Now & "] " & frmMain_LogAutoClear)
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
'We shouldn't allow any one message to be greater than 255 characters if that same message is pushed to the tray icon
|
'We shouldn't allow any one message to be greater than 255 characters if that same message is pushed to the tray icon
|
||||||
|
|||||||
Generated
+29
-16
@@ -26,6 +26,8 @@ Partial Class frmSettings
|
|||||||
Me.chkMonitorOnStartup = New System.Windows.Forms.CheckBox()
|
Me.chkMonitorOnStartup = New System.Windows.Forms.CheckBox()
|
||||||
Me.chkBackupConfirm = New System.Windows.Forms.CheckBox()
|
Me.chkBackupConfirm = New System.Windows.Forms.CheckBox()
|
||||||
Me.grpGeneral = New System.Windows.Forms.GroupBox()
|
Me.grpGeneral = New System.Windows.Forms.GroupBox()
|
||||||
|
Me.chkAutoSaveLog = New System.Windows.Forms.CheckBox()
|
||||||
|
Me.btnOptionalFields = New System.Windows.Forms.Button()
|
||||||
Me.chkTimeTracking = New System.Windows.Forms.CheckBox()
|
Me.chkTimeTracking = New System.Windows.Forms.CheckBox()
|
||||||
Me.chkSync = New System.Windows.Forms.CheckBox()
|
Me.chkSync = New System.Windows.Forms.CheckBox()
|
||||||
Me.chkStartWindows = New System.Windows.Forms.CheckBox()
|
Me.chkStartWindows = New System.Windows.Forms.CheckBox()
|
||||||
@@ -58,7 +60,6 @@ Partial Class frmSettings
|
|||||||
Me.lbl7zProduct = New System.Windows.Forms.Label()
|
Me.lbl7zProduct = New System.Windows.Forms.Label()
|
||||||
Me.btnDefaults = New System.Windows.Forms.Button()
|
Me.btnDefaults = New System.Windows.Forms.Button()
|
||||||
Me.ttUtilityStatus = New System.Windows.Forms.ToolTip(Me.components)
|
Me.ttUtilityStatus = New System.Windows.Forms.ToolTip(Me.components)
|
||||||
Me.btnOptionalFields = New System.Windows.Forms.Button()
|
|
||||||
Me.grpGeneral.SuspendLayout()
|
Me.grpGeneral.SuspendLayout()
|
||||||
Me.grpPaths.SuspendLayout()
|
Me.grpPaths.SuspendLayout()
|
||||||
Me.grpBackup.SuspendLayout()
|
Me.grpBackup.SuspendLayout()
|
||||||
@@ -89,6 +90,7 @@ Partial Class frmSettings
|
|||||||
'
|
'
|
||||||
'grpGeneral
|
'grpGeneral
|
||||||
'
|
'
|
||||||
|
Me.grpGeneral.Controls.Add(Me.chkAutoSaveLog)
|
||||||
Me.grpGeneral.Controls.Add(Me.btnOptionalFields)
|
Me.grpGeneral.Controls.Add(Me.btnOptionalFields)
|
||||||
Me.grpGeneral.Controls.Add(Me.chkTimeTracking)
|
Me.grpGeneral.Controls.Add(Me.chkTimeTracking)
|
||||||
Me.grpGeneral.Controls.Add(Me.chkSync)
|
Me.grpGeneral.Controls.Add(Me.chkSync)
|
||||||
@@ -98,15 +100,35 @@ Partial Class frmSettings
|
|||||||
Me.grpGeneral.Controls.Add(Me.chkMonitorOnStartup)
|
Me.grpGeneral.Controls.Add(Me.chkMonitorOnStartup)
|
||||||
Me.grpGeneral.Location = New System.Drawing.Point(12, 12)
|
Me.grpGeneral.Location = New System.Drawing.Point(12, 12)
|
||||||
Me.grpGeneral.Name = "grpGeneral"
|
Me.grpGeneral.Name = "grpGeneral"
|
||||||
Me.grpGeneral.Size = New System.Drawing.Size(360, 165)
|
Me.grpGeneral.Size = New System.Drawing.Size(360, 187)
|
||||||
Me.grpGeneral.TabIndex = 0
|
Me.grpGeneral.TabIndex = 0
|
||||||
Me.grpGeneral.TabStop = False
|
Me.grpGeneral.TabStop = False
|
||||||
Me.grpGeneral.Text = "General"
|
Me.grpGeneral.Text = "General"
|
||||||
'
|
'
|
||||||
|
'chkAutoSaveLog
|
||||||
|
'
|
||||||
|
Me.chkAutoSaveLog.AutoSize = True
|
||||||
|
Me.chkAutoSaveLog.Location = New System.Drawing.Point(6, 111)
|
||||||
|
Me.chkAutoSaveLog.Name = "chkAutoSaveLog"
|
||||||
|
Me.chkAutoSaveLog.Size = New System.Drawing.Size(231, 17)
|
||||||
|
Me.chkAutoSaveLog.TabIndex = 7
|
||||||
|
Me.chkAutoSaveLog.Text = "Autosave log when max length is exceeded"
|
||||||
|
Me.chkAutoSaveLog.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
|
'btnOptionalFields
|
||||||
|
'
|
||||||
|
Me.btnOptionalFields.DialogResult = System.Windows.Forms.DialogResult.OK
|
||||||
|
Me.btnOptionalFields.Location = New System.Drawing.Point(110, 153)
|
||||||
|
Me.btnOptionalFields.Name = "btnOptionalFields"
|
||||||
|
Me.btnOptionalFields.Size = New System.Drawing.Size(134, 23)
|
||||||
|
Me.btnOptionalFields.TabIndex = 6
|
||||||
|
Me.btnOptionalFields.Text = "Choose &Optional Fields..."
|
||||||
|
Me.btnOptionalFields.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
'chkTimeTracking
|
'chkTimeTracking
|
||||||
'
|
'
|
||||||
Me.chkTimeTracking.AutoSize = True
|
Me.chkTimeTracking.AutoSize = True
|
||||||
Me.chkTimeTracking.Location = New System.Drawing.Point(6, 111)
|
Me.chkTimeTracking.Location = New System.Drawing.Point(6, 134)
|
||||||
Me.chkTimeTracking.Name = "chkTimeTracking"
|
Me.chkTimeTracking.Name = "chkTimeTracking"
|
||||||
Me.chkTimeTracking.Size = New System.Drawing.Size(122, 17)
|
Me.chkTimeTracking.Size = New System.Drawing.Size(122, 17)
|
||||||
Me.chkTimeTracking.TabIndex = 4
|
Me.chkTimeTracking.TabIndex = 4
|
||||||
@@ -116,7 +138,7 @@ Partial Class frmSettings
|
|||||||
'chkSync
|
'chkSync
|
||||||
'
|
'
|
||||||
Me.chkSync.AutoSize = True
|
Me.chkSync.AutoSize = True
|
||||||
Me.chkSync.Location = New System.Drawing.Point(6, 134)
|
Me.chkSync.Location = New System.Drawing.Point(6, 157)
|
||||||
Me.chkSync.Name = "chkSync"
|
Me.chkSync.Name = "chkSync"
|
||||||
Me.chkSync.Size = New System.Drawing.Size(98, 17)
|
Me.chkSync.Size = New System.Drawing.Size(98, 17)
|
||||||
Me.chkSync.TabIndex = 5
|
Me.chkSync.TabIndex = 5
|
||||||
@@ -158,7 +180,7 @@ Partial Class frmSettings
|
|||||||
Me.grpPaths.Controls.Add(Me.btnBackupFolder)
|
Me.grpPaths.Controls.Add(Me.btnBackupFolder)
|
||||||
Me.grpPaths.Controls.Add(Me.lblBackupFolder)
|
Me.grpPaths.Controls.Add(Me.lblBackupFolder)
|
||||||
Me.grpPaths.Controls.Add(Me.txtBackupFolder)
|
Me.grpPaths.Controls.Add(Me.txtBackupFolder)
|
||||||
Me.grpPaths.Location = New System.Drawing.Point(378, 183)
|
Me.grpPaths.Location = New System.Drawing.Point(12, 205)
|
||||||
Me.grpPaths.Name = "grpPaths"
|
Me.grpPaths.Name = "grpPaths"
|
||||||
Me.grpPaths.Size = New System.Drawing.Size(360, 60)
|
Me.grpPaths.Size = New System.Drawing.Size(360, 60)
|
||||||
Me.grpPaths.TabIndex = 3
|
Me.grpPaths.TabIndex = 3
|
||||||
@@ -306,7 +328,7 @@ Partial Class frmSettings
|
|||||||
Me.grp7z.Controls.Add(Me.cboCompression)
|
Me.grp7z.Controls.Add(Me.cboCompression)
|
||||||
Me.grp7z.Controls.Add(Me.lblCompression)
|
Me.grp7z.Controls.Add(Me.lblCompression)
|
||||||
Me.grp7z.Controls.Add(Me.lbl7zProduct)
|
Me.grp7z.Controls.Add(Me.lbl7zProduct)
|
||||||
Me.grp7z.Location = New System.Drawing.Point(12, 183)
|
Me.grp7z.Location = New System.Drawing.Point(378, 183)
|
||||||
Me.grp7z.Name = "grp7z"
|
Me.grp7z.Name = "grp7z"
|
||||||
Me.grp7z.Size = New System.Drawing.Size(360, 137)
|
Me.grp7z.Size = New System.Drawing.Size(360, 137)
|
||||||
Me.grp7z.TabIndex = 1
|
Me.grp7z.TabIndex = 1
|
||||||
@@ -408,16 +430,6 @@ Partial Class frmSettings
|
|||||||
Me.btnDefaults.Text = "Set &Defaults"
|
Me.btnDefaults.Text = "Set &Defaults"
|
||||||
Me.btnDefaults.UseVisualStyleBackColor = True
|
Me.btnDefaults.UseVisualStyleBackColor = True
|
||||||
'
|
'
|
||||||
'btnOptionalFields
|
|
||||||
'
|
|
||||||
Me.btnOptionalFields.DialogResult = System.Windows.Forms.DialogResult.OK
|
|
||||||
Me.btnOptionalFields.Location = New System.Drawing.Point(110, 130)
|
|
||||||
Me.btnOptionalFields.Name = "btnOptionalFields"
|
|
||||||
Me.btnOptionalFields.Size = New System.Drawing.Size(134, 23)
|
|
||||||
Me.btnOptionalFields.TabIndex = 6
|
|
||||||
Me.btnOptionalFields.Text = "Choose &Optional Fields..."
|
|
||||||
Me.btnOptionalFields.UseVisualStyleBackColor = True
|
|
||||||
'
|
|
||||||
'frmSettings
|
'frmSettings
|
||||||
'
|
'
|
||||||
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
|
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
|
||||||
@@ -487,4 +499,5 @@ Partial Class frmSettings
|
|||||||
Friend WithEvents pbUtilityStatus As PictureBox
|
Friend WithEvents pbUtilityStatus As PictureBox
|
||||||
Friend WithEvents ttUtilityStatus As ToolTip
|
Friend WithEvents ttUtilityStatus As ToolTip
|
||||||
Friend WithEvents btnOptionalFields As Button
|
Friend WithEvents btnOptionalFields As Button
|
||||||
|
Friend WithEvents chkAutoSaveLog As CheckBox
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -44,6 +44,7 @@ Public Class frmSettings
|
|||||||
oSettings.MonitorOnStartup = chkMonitorOnStartup.Checked
|
oSettings.MonitorOnStartup = chkMonitorOnStartup.Checked
|
||||||
oSettings.StartToTray = chkStartToTray.Checked
|
oSettings.StartToTray = chkStartToTray.Checked
|
||||||
oSettings.ShowDetectionToolTips = chkShowDetectionTips.Checked
|
oSettings.ShowDetectionToolTips = chkShowDetectionTips.Checked
|
||||||
|
oSettings.AutoSaveLog = chkAutoSaveLog.Checked
|
||||||
oSettings.DisableConfirmation = chkBackupConfirm.Checked
|
oSettings.DisableConfirmation = chkBackupConfirm.Checked
|
||||||
oSettings.CreateSubFolder = chkCreateFolder.Checked
|
oSettings.CreateSubFolder = chkCreateFolder.Checked
|
||||||
oSettings.ShowOverwriteWarning = chkOverwriteWarning.Checked
|
oSettings.ShowOverwriteWarning = chkOverwriteWarning.Checked
|
||||||
@@ -167,6 +168,7 @@ Public Class frmSettings
|
|||||||
chkMonitorOnStartup.Checked = oSettings.MonitorOnStartup
|
chkMonitorOnStartup.Checked = oSettings.MonitorOnStartup
|
||||||
chkStartToTray.Checked = oSettings.StartToTray
|
chkStartToTray.Checked = oSettings.StartToTray
|
||||||
chkShowDetectionTips.Checked = oSettings.ShowDetectionToolTips
|
chkShowDetectionTips.Checked = oSettings.ShowDetectionToolTips
|
||||||
|
chkAutoSaveLog.Checked = oSettings.AutoSaveLog
|
||||||
chkBackupConfirm.Checked = oSettings.DisableConfirmation
|
chkBackupConfirm.Checked = oSettings.DisableConfirmation
|
||||||
chkCreateFolder.Checked = oSettings.CreateSubFolder
|
chkCreateFolder.Checked = oSettings.CreateSubFolder
|
||||||
chkOverwriteWarning.Checked = oSettings.ShowOverwriteWarning
|
chkOverwriteWarning.Checked = oSettings.ShowOverwriteWarning
|
||||||
@@ -253,6 +255,7 @@ Public Class frmSettings
|
|||||||
chkStartWindows.Text = frmSettings_chkStartWindows
|
chkStartWindows.Text = frmSettings_chkStartWindows
|
||||||
chkSync.Text = frmSettings_chkSync
|
chkSync.Text = frmSettings_chkSync
|
||||||
chkShowDetectionTips.Text = frmSettings_chkShowDetectionTips
|
chkShowDetectionTips.Text = frmSettings_chkShowDetectionTips
|
||||||
|
chkAutoSaveLog.Text = frmSettings_chkAutoSaveLog
|
||||||
chkStartToTray.Text = frmSettings_chkStartToTray
|
chkStartToTray.Text = frmSettings_chkStartToTray
|
||||||
chkMonitorOnStartup.Text = frmSettings_chkMonitorOnStartup
|
chkMonitorOnStartup.Text = frmSettings_chkMonitorOnStartup
|
||||||
grp7z.Text = frmSettings_grp7z
|
grp7z.Text = frmSettings_grp7z
|
||||||
|
|||||||
+12
-12
@@ -5,11 +5,11 @@ Imports System.Reflection
|
|||||||
|
|
||||||
Public Class mgrPath
|
Public Class mgrPath
|
||||||
'Important Note: Any changes to sSettingsRoot & sDBLocation need to be mirrored in frmMain.vb -> VerifyGameDataPath
|
'Important Note: Any changes to sSettingsRoot & sDBLocation need to be mirrored in frmMain.vb -> VerifyGameDataPath
|
||||||
Private Shared sSettingsRoot As String = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) & "/gbm"
|
Private Shared sSettingsRoot As String = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) & Path.DirectorySeparatorChar & "gbm"
|
||||||
Private Shared sDBLocation As String = sSettingsRoot & "/gbm.s3db"
|
Private Shared sDBLocation As String = sSettingsRoot & Path.DirectorySeparatorChar & "gbm.s3db"
|
||||||
Private Shared sIncludeFile As String = sSettingsRoot & "/gbm_include.txt"
|
Private Shared sIncludeFile As String = sSettingsRoot & Path.DirectorySeparatorChar & "gbm_include.txt"
|
||||||
Private Shared sExcludeFile As String = sSettingsRoot & "/gbm_exclude.txt"
|
Private Shared sExcludeFile As String = sSettingsRoot & Path.DirectorySeparatorChar & "gbm_exclude.txt"
|
||||||
Private Shared sLogFile As String = sSettingsRoot & "/gbm_log_" & Date.Now.ToString("dd-MM-yyyy-HH-mm-ss") & ".txt"
|
Private Shared sLogFile As String = sSettingsRoot & Path.DirectorySeparatorChar & "gbm_log_" & Date.Now.ToString("dd-MM-yyyy-HH-mm-ss") & ".txt"
|
||||||
Private Shared sRemoteDatabaseLocation As String
|
Private Shared sRemoteDatabaseLocation As String
|
||||||
Private Shared hshCustomVariables As Hashtable
|
Private Shared hshCustomVariables As Hashtable
|
||||||
Private Shared oReleaseType As ProcessorArchitecture = AssemblyName.GetAssemblyName(Application.ExecutablePath()).ProcessorArchitecture
|
Private Shared oReleaseType As ProcessorArchitecture = AssemblyName.GetAssemblyName(Application.ExecutablePath()).ProcessorArchitecture
|
||||||
@@ -45,18 +45,18 @@ Public Class mgrPath
|
|||||||
|
|
||||||
Select Case oReleaseType
|
Select Case oReleaseType
|
||||||
Case ProcessorArchitecture.Amd64
|
Case ProcessorArchitecture.Amd64
|
||||||
Return Application.StartupPath & "/Utilities/x64/7za.exe"
|
Return Application.StartupPath & "\Utilities\x64\7za.exe"
|
||||||
Case ProcessorArchitecture.IA64
|
Case ProcessorArchitecture.IA64
|
||||||
Return Application.StartupPath & "/Utilities/x64/7za.exe"
|
Return Application.StartupPath & "\Utilities\x64\7za.exe"
|
||||||
Case ProcessorArchitecture.MSIL
|
Case ProcessorArchitecture.MSIL
|
||||||
Return Application.StartupPath & "/Utilities/x86/7za.exe"
|
Return Application.StartupPath & "\Utilities\x86\7za.exe"
|
||||||
Case ProcessorArchitecture.X86
|
Case ProcessorArchitecture.X86
|
||||||
Return Application.StartupPath & "/Utilities/x86/7za.exe"
|
Return Application.StartupPath & "\Utilities\x86\7za.exe"
|
||||||
Case ProcessorArchitecture.None
|
Case ProcessorArchitecture.None
|
||||||
Return Application.StartupPath & "/Utilities/x86/7za.exe"
|
Return Application.StartupPath & "\Utilities\x86\7za.exe"
|
||||||
End Select
|
End Select
|
||||||
|
|
||||||
Return Application.StartupPath & "/Utilities/x86/7za.exe"
|
Return Application.StartupPath & "\Utilities\x86\7za.exe"
|
||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
@@ -95,7 +95,7 @@ Public Class mgrPath
|
|||||||
Return sRemoteDatabaseLocation
|
Return sRemoteDatabaseLocation
|
||||||
End Get
|
End Get
|
||||||
Set(value As String)
|
Set(value As String)
|
||||||
sRemoteDatabaseLocation = value & "/gbm.s3db"
|
sRemoteDatabaseLocation = value & Path.DirectorySeparatorChar & "gbm.s3db"
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ Public Class mgrSQLite
|
|||||||
"DisableConfirmation BOOLEAN NOT NULL, CreateSubFolder BOOLEAN NOT NULL, ShowOverwriteWarning BOOLEAN NOT NULL, RestoreOnLaunch BOOLEAN NOT NULL, " &
|
"DisableConfirmation BOOLEAN NOT NULL, CreateSubFolder BOOLEAN NOT NULL, ShowOverwriteWarning BOOLEAN NOT NULL, RestoreOnLaunch BOOLEAN NOT NULL, " &
|
||||||
"BackupFolder TEXT NOT NULL, Sync BOOLEAN NOT NULL, CheckSum BOOLEAN NOT NULL, StartWithWindows BOOLEAN NOT NULL, TimeTracking BOOLEAN NOT NULL, " &
|
"BackupFolder TEXT NOT NULL, Sync BOOLEAN NOT NULL, CheckSum BOOLEAN NOT NULL, StartWithWindows BOOLEAN NOT NULL, TimeTracking BOOLEAN NOT NULL, " &
|
||||||
"SupressBackup BOOLEAN NOT NULL, SupressBackupThreshold INTEGER NOT NULL, CompressionLevel INTEGER NOT NULL, Custom7zArguments TEXT, " &
|
"SupressBackup BOOLEAN NOT NULL, SupressBackupThreshold INTEGER NOT NULL, CompressionLevel INTEGER NOT NULL, Custom7zArguments TEXT, " &
|
||||||
"Custom7zLocation TEXT, SyncFields INTEGER NOT NULL);"
|
"Custom7zLocation TEXT, SyncFields INTEGER NOT NULL, AutoSaveLog BOOLEAN NOT NULL);"
|
||||||
|
|
||||||
'Add Tables (Monitor List)
|
'Add Tables (Monitor List)
|
||||||
sSql &= "CREATE TABLE monitorlist (MonitorID TEXT NOT NULL UNIQUE, Name TEXT NOT NULL, Process TEXT NOT NULL, Path TEXT, " &
|
sSql &= "CREATE TABLE monitorlist (MonitorID TEXT NOT NULL UNIQUE, Name TEXT NOT NULL, Process TEXT NOT NULL, Path TEXT, " &
|
||||||
@@ -541,6 +541,7 @@ Public Class mgrSQLite
|
|||||||
sSQL = "ALTER TABLE settings ADD COLUMN Custom7zArguments TEXT;"
|
sSQL = "ALTER TABLE settings ADD COLUMN Custom7zArguments TEXT;"
|
||||||
sSQL &= "ALTER TABLE settings ADD COLUMN Custom7zLocation TEXT;"
|
sSQL &= "ALTER TABLE settings ADD COLUMN Custom7zLocation TEXT;"
|
||||||
sSQL &= "ALTER TABLE settings ADD COLUMN SyncFields INTEGER NOT NULL DEFAULT 32;"
|
sSQL &= "ALTER TABLE settings ADD COLUMN SyncFields INTEGER NOT NULL DEFAULT 32;"
|
||||||
|
sSQL &= "ALTER TABLE settings ADD COLUMN AutoSaveLog BOOLEAN NOT NULL DEFAULT 0;"
|
||||||
sSQL &= "PRAGMA user_version=97"
|
sSQL &= "PRAGMA user_version=97"
|
||||||
|
|
||||||
RunParamQuery(sSQL, New Hashtable)
|
RunParamQuery(sSQL, New Hashtable)
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ Public Class mgrSettings
|
|||||||
Private s7zLocation As String = String.Empty
|
Private s7zLocation As String = String.Empty
|
||||||
Private sBackupFolder As String = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments).TrimEnd(New Char() {"\", "/"})
|
Private sBackupFolder As String = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments).TrimEnd(New Char() {"\", "/"})
|
||||||
Private eSyncFields As clsGame.eOptionalSyncFields = clsGame.eOptionalSyncFields.None Or clsGame.eOptionalSyncFields.TimeStamp
|
Private eSyncFields As clsGame.eOptionalSyncFields = clsGame.eOptionalSyncFields.None Or clsGame.eOptionalSyncFields.TimeStamp
|
||||||
|
Private bAutoSaveLog As Boolean = False
|
||||||
|
|
||||||
Property StartWithWindows As Boolean
|
Property StartWithWindows As Boolean
|
||||||
Get
|
Get
|
||||||
@@ -230,6 +231,15 @@ Public Class mgrSettings
|
|||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
Property AutoSaveLog As Boolean
|
||||||
|
Get
|
||||||
|
Return bAutoSaveLog
|
||||||
|
End Get
|
||||||
|
Set(value As Boolean)
|
||||||
|
bAutoSaveLog = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
Private Sub SaveFromClass()
|
Private Sub SaveFromClass()
|
||||||
Dim oDatabase As New mgrSQLite(mgrSQLite.Database.Local)
|
Dim oDatabase As New mgrSQLite(mgrSQLite.Database.Local)
|
||||||
Dim sSQL As String
|
Dim sSQL As String
|
||||||
@@ -241,7 +251,7 @@ Public Class mgrSettings
|
|||||||
sSQL = "INSERT INTO settings VALUES (1, @MonitorOnStartup, @StartToTray, @ShowDetectionToolTips, @DisableConfirmation, "
|
sSQL = "INSERT INTO settings VALUES (1, @MonitorOnStartup, @StartToTray, @ShowDetectionToolTips, @DisableConfirmation, "
|
||||||
sSQL &= "@CreateSubFolder, @ShowOverwriteWarning, @RestoreOnLaunch, @BackupFolder, @Sync, @CheckSum, @StartWithWindows, "
|
sSQL &= "@CreateSubFolder, @ShowOverwriteWarning, @RestoreOnLaunch, @BackupFolder, @Sync, @CheckSum, @StartWithWindows, "
|
||||||
sSQL &= "@TimeTracking, @SupressBackup, @SupressBackupThreshold, @CompressionLevel, @Custom7zArguments, @Custom7zLocation, "
|
sSQL &= "@TimeTracking, @SupressBackup, @SupressBackupThreshold, @CompressionLevel, @Custom7zArguments, @Custom7zLocation, "
|
||||||
sSQL &= "@SyncFields)"
|
sSQL &= "@SyncFields,@AutoSaveLog)"
|
||||||
|
|
||||||
hshParams.Add("MonitorOnStartup", MonitorOnStartup)
|
hshParams.Add("MonitorOnStartup", MonitorOnStartup)
|
||||||
hshParams.Add("StartToTray", StartToTray)
|
hshParams.Add("StartToTray", StartToTray)
|
||||||
@@ -261,6 +271,7 @@ Public Class mgrSettings
|
|||||||
hshParams.Add("Custom7zArguments", Custom7zArguments)
|
hshParams.Add("Custom7zArguments", Custom7zArguments)
|
||||||
hshParams.Add("Custom7zLocation", Custom7zLocation)
|
hshParams.Add("Custom7zLocation", Custom7zLocation)
|
||||||
hshParams.Add("SyncFields", SyncFields)
|
hshParams.Add("SyncFields", SyncFields)
|
||||||
|
hshParams.Add("AutoSaveLog", AutoSaveLog)
|
||||||
oDatabase.RunParamQuery(sSQL, hshParams)
|
oDatabase.RunParamQuery(sSQL, hshParams)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -293,6 +304,7 @@ Public Class mgrSettings
|
|||||||
If Not IsDBNull(dr("Custom7zArguments")) Then Custom7zArguments = CStr(dr("Custom7zArguments"))
|
If Not IsDBNull(dr("Custom7zArguments")) Then Custom7zArguments = CStr(dr("Custom7zArguments"))
|
||||||
If Not IsDBNull(dr("Custom7zLocation")) Then Custom7zLocation = CStr(dr("Custom7zLocation"))
|
If Not IsDBNull(dr("Custom7zLocation")) Then Custom7zLocation = CStr(dr("Custom7zLocation"))
|
||||||
SyncFields = CInt(dr("SyncFields"))
|
SyncFields = CInt(dr("SyncFields"))
|
||||||
|
AutoSaveLog = CBool(dr("AutoSaveLog"))
|
||||||
Next
|
Next
|
||||||
|
|
||||||
oDatabase.Disconnect()
|
oDatabase.Disconnect()
|
||||||
|
|||||||
Generated
+19
-1
@@ -2842,7 +2842,16 @@ Namespace My.Resources
|
|||||||
End Property
|
End Property
|
||||||
|
|
||||||
'''<summary>
|
'''<summary>
|
||||||
''' Looks up a localized string similar to The session log has been cleared due to size and auto-saved to [PARAM]..
|
''' Looks up a localized string similar to The session log reached maximum length and has been cleared ..
|
||||||
|
'''</summary>
|
||||||
|
Friend ReadOnly Property frmMain_LogAutoClear() As String
|
||||||
|
Get
|
||||||
|
Return ResourceManager.GetString("frmMain_LogAutoClear", resourceCulture)
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
'''<summary>
|
||||||
|
''' Looks up a localized string similar to The session log reached maximum length and has been auto-saved to [PARAM]..
|
||||||
'''</summary>
|
'''</summary>
|
||||||
Friend ReadOnly Property frmMain_LogAutoSave() As String
|
Friend ReadOnly Property frmMain_LogAutoSave() As String
|
||||||
Get
|
Get
|
||||||
@@ -3219,6 +3228,15 @@ Namespace My.Resources
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
'''<summary>
|
||||||
|
''' Looks up a localized string similar to Autosave log when max length is exceeded.
|
||||||
|
'''</summary>
|
||||||
|
Friend ReadOnly Property frmSettings_chkAutoSaveLog() As String
|
||||||
|
Get
|
||||||
|
Return ResourceManager.GetString("frmSettings_chkAutoSaveLog", resourceCulture)
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
'''<summary>
|
'''<summary>
|
||||||
''' Looks up a localized string similar to Disable backup confirmation.
|
''' Looks up a localized string similar to Disable backup confirmation.
|
||||||
'''</summary>
|
'''</summary>
|
||||||
|
|||||||
@@ -1499,7 +1499,7 @@
|
|||||||
<value>&Log</value>
|
<value>&Log</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="frmMain_LogAutoSave" xml:space="preserve">
|
<data name="frmMain_LogAutoSave" xml:space="preserve">
|
||||||
<value>The session log has been cleared due to size and auto-saved to [PARAM].</value>
|
<value>The session log reached maximum length and has been auto-saved to [PARAM].</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="frmMain_Text" xml:space="preserve">
|
<data name="frmMain_Text" xml:space="preserve">
|
||||||
<value>Text</value>
|
<value>Text</value>
|
||||||
@@ -1693,4 +1693,10 @@
|
|||||||
<data name="frmSyncFields_grpFields" xml:space="preserve">
|
<data name="frmSyncFields_grpFields" xml:space="preserve">
|
||||||
<value>Available Fields</value>
|
<value>Available Fields</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="frmMain_LogAutoClear" xml:space="preserve">
|
||||||
|
<value>The session log reached maximum length and has been cleared .</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmSettings_chkAutoSaveLog" xml:space="preserve">
|
||||||
|
<value>Autosave log when max length is exceeded</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
||||||
Reference in New Issue
Block a user