Repository navigation
List user parameter presets in step 1 Presets menu - #661
Merged
Merged
Conversation
The Presets menu now lists the .toml parameter files in the user's config folder: %APPDATA%\hdmapping on Windows, $XDG_CONFIG_HOME/hdmapping or ~/.config/hdmapping elsewhere. The folder is re-read each time the menu opens. Clicking a preset loads it like Parameters > Load parameters. Parameters > Save parameters opens its dialog in that folder and creates it if needed. The other file dialogs keep their last location. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
michalpelka
force-pushed
the
mp/step1-user-presets
branch
from
November 25, 2026 16:08
436c64f to
eb37692
Compare
Contributor
Author
|
Tested on Wine, I do not have mental capability to run Windows this month. |
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.
Summary
lidar_odometry_step_1now lists the user's own parameter files (*.toml) under the built-in presets, sorted by name. Clicking one loads it the same way as Parameters > Load parameters: only the keys in the file change, so a preset can be partial.%APPDATA%\hdmappingon Windows;$XDG_CONFIG_HOME/hdmapping, falling back to~/.config/hdmapping, on Linux and macOS. The folder is re-read each time the menu opens, so new files appear without restarting. The app doesn't create the folder. When it has no presets, the menu shows a greyed-out "No user presets" item whose tooltip gives the folder path.C:\Users\Michał\...) work:APPDATAis read as a wide string and passed to toml++ as UTF-8, which toml++ widens again before opening the file on MSVC.Test plan
lidar_odometry_step_1builds on Linux; clang-format 21 is clean.tomlin%APPDATA%\hdmapping, open Presets, load it.tomlsaved with Save parameters in~/.config/hdmapping, load it from Presets, check that the parameters changed and the checkmark moves to it