Skip to content

Commit

Permalink
2016-11-12-01 - Fixed Persistant MaxNodes issue.
Browse files Browse the repository at this point in the history
Previously failed to account for maxnodes being 20 on launch, and that
'valuechanged' triggering it to update the registry.

Now writes back to the maxnode value if it differs, but still reads it
back again in case something is persistently writing.
  • Loading branch information
Wulf2k committed Nov 12, 2016
1 parent e5be0fd commit e361193
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DaS-PC-MPChan/MainWindow.Designer.vb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions DaS-PC-MPChan/MainWindow.vb
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,10 @@ Public Class MainWindow

Dim maxNodes = dsProcess.MaxNodes
If maxNodes >= nmbMaxNodes.Minimum And maxNodes <= nmbMaxNodes.Maximum Then
If maxNodes <> nmbMaxNodes.Value Then
dsProcess.MaxNodes = nmbMaxNodes.Value
maxNodes = dsProcess.MaxNodes
End If
nmbMaxNodes.Value = maxNodes
nmbMaxNodes.Enabled = True
nmbMaxNodes.BackColor = New Color()
Expand Down

0 comments on commit e361193

Please sign in to comment.