Skip to content

Commit 2d59c80

Browse files
committed
Bumped version, made reading config more forgiving with capitals
1 parent 6175a0d commit 2d59c80

2 files changed

Lines changed: 17 additions & 17 deletions

File tree

KeyInsert.vb

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -243,10 +243,10 @@ Public Partial Class KeyInsert
243243
End Try
244244
Dim attribute As String
245245

246-
If reader.IsStartElement() AndAlso reader.Name = "KeyInsert" Then
247-
If reader.Read AndAlso reader.IsStartElement() AndAlso reader.Name = "KeyList" Then
246+
If reader.IsStartElement() AndAlso reader.Name.ToLower = "keyinsert" Then
247+
If reader.Read AndAlso reader.IsStartElement() AndAlso reader.Name.ToLower = "keylist" Then
248248
While reader.IsStartElement
249-
If reader.Read AndAlso reader.IsStartElement() AndAlso reader.Name = "KeyString" Then
249+
If reader.Read AndAlso reader.IsStartElement() AndAlso reader.Name.ToLower = "keystring" Then
250250
Dim tmpListViewItem As New ListViewItem(New String() {"{ENTER}", "100"})
251251

252252
attribute = reader("keys")
@@ -263,11 +263,11 @@ Public Partial Class KeyInsert
263263
End If
264264
End While
265265
End If
266-
If reader.Read AndAlso reader.IsStartElement() AndAlso reader.Name = "Settings" Then
267-
If reader.Read AndAlso reader.IsStartElement() AndAlso reader.Name = "ColumnSettings" Then
266+
If reader.Read AndAlso reader.IsStartElement() AndAlso reader.Name.ToLower = "settings" Then
267+
If reader.Read AndAlso reader.IsStartElement() AndAlso reader.Name.ToLower = "columnsettings" Then
268268
While reader.IsStartElement
269269
If reader.Read AndAlso reader.IsStartElement() Then
270-
If reader.Name = "KeyStrings" Then
270+
If reader.Name.ToLower = "keystrings" Then
271271
attribute = reader("index")
272272
If attribute IsNot Nothing Then
273273
colheadKeyStroke.DisplayIndex = attribute
@@ -277,7 +277,7 @@ Public Partial Class KeyInsert
277277
If attribute IsNot Nothing Then
278278
colheadKeyStroke.Width = attribute
279279
End If
280-
ElseIf reader.Name = "WaitTime"
280+
ElseIf reader.Name.ToLower = "waittime"
281281
attribute = reader("index")
282282
If attribute IsNot Nothing Then
283283
colheadTime.DisplayIndex = attribute
@@ -293,10 +293,10 @@ Public Partial Class KeyInsert
293293
End If
294294

295295
Do While reader.Read AndAlso reader.IsStartElement
296-
Select Case reader.Name
297-
Case "StopKey"
296+
Select Case reader.Name.ToLower
297+
Case "stopkey"
298298
attribute = reader("key")
299-
Select Case attribute
299+
Select Case attribute.ToLower
300300
Case "ctrl"
301301
optKeyCtrl.Checked = True
302302
Case "alt"
@@ -310,19 +310,19 @@ Public Partial Class KeyInsert
310310
Case "scrolllock"
311311
optKeyScrollLock.Checked = True
312312
End Select
313-
Case "StartActions"
313+
Case "startactions"
314314
chkStartMinimise.Checked = reader("minimise")
315315
chkStartBackground.Checked = reader("background")
316316
chkStartHide.Checked = reader("hide")
317-
Case "EndActions"
317+
Case "endactions"
318318
chkEndRestore.Checked = reader("restore")
319319
chkEndForeground.Checked = reader("foreground")
320320
chkEndShow.Checked = reader("show")
321-
Case "StartDelay"
321+
Case "startdelay"
322322
numStartupDelay.Value = reader("value")
323-
Case "RunCountLimit"
323+
Case "runcountlimit"
324324
numRunCountLimit.Value = reader("value")
325-
Case "TaskbarProgress"
325+
Case "taskbarprogress"
326326
chkTaskbar.Checked = reader("value")
327327
End Select
328328
Loop

Properties/AssemblyInfo.vb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ Imports System.Runtime.InteropServices
2828
' You can specify all values by your own or you can build default build and revision
2929
' numbers with the '*' character (the default):
3030

31-
<Assembly: AssemblyVersion("1.3.0.0")>
32-
<Assembly: AssemblyFileVersion("1.3.0.0")>
31+
<Assembly: AssemblyVersion("1.4.0.0")>
32+
<Assembly: AssemblyFileVersion("1.4.0.0")>

0 commit comments

Comments
 (0)