Repository navigation
Replace user.config with a JSON file next to the exe - #26
Open
danielchalmers wants to merge 1 commit into
Open
danielchalmers wants to merge 1 commit into
danielchalmers wants to merge 1 commit into
Conversation
danielchalmers
marked this pull request as ready for review
October 12, 2026 15:41
danielchalmers
force-pushed
the
v5/settings-file
branch
from
October 12, 2026 16:27
64620a2 to
da24d3f
Compare
danielchalmers
added this pull request to stack #33
October 12, 2026 16:28
- Save settings as JSON to <exe name>.settings beside the exe, a second after each change - First run imports a sibling .settings file, else this copy's or the newest 4.x user.config - Write through a temp file and MoveFileEx so a killed save can't leave a partial file - Reset only bad values, allow a trailing comma, keep an unparsable file as .settings.bad - Warn at startup when settings can't be saved; remove the user.config repair-and-restart
danielchalmers
force-pushed
the
v5/settings-file
branch
from
October 12, 2026 18:09
da24d3f to
d5a9cdc
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Network-Monitor-x64.settingsfor the portable exe,Network Monitor.settingsfor the installed one. A portable copy keeps its settings when it's moved, and each copy has its own..settingsfile beside it, so a download saved asNetwork-Monitor-x64 (1).execarries on from the old one. Otherwise the installed copy gets its own 4.x settings and position back, and any other copy gets whatever 4.x saved last. 4.x's files are only read. The position is skipped while another copy is running..settings.badbefore the defaults are saved over it. Saves go through a temp file.Release notes: settings now live in a
.settingsfile beside the exe and are brought over from 4.x once. Uninstalling leavesNetwork Monitor.settingsin%LOCALAPPDATA%\Network Monitor, and a portable copy doesn't pick up the installed copy's 5.0 settings.