Repository navigation
Config editor: restart list line numbers on new settings - #116
Conversation
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
|
@WoggleSL/review run |
|
Queued for approval, waiting for the checks:
WoggleSL Review · requested by a maintainer from the review board |
|
Queued for approval, waiting for the checks:
WoggleSL Review · requested by a maintainer from the review board |
|
Ran the review queue for every approved PR:
WoggleSL Review · requested by @R3disme from a comment |
There was a problem hiding this comment.
Approved by a maintainer on the review board.
Checks
- ✅ Build linux-x86_64
- ✅ Build windows-x86_64
- ✅ retake screenshots (not required)
- ✅ changes (not required)
- ✅ codeql (actions) (not required)
- ✅ wiki (not required)
- ✅ changes (not required)
- ⏳ codeql (rust) (not required)
- ✅ screenshots out of date (not required)
- ✅ Build macos-universal (not required)
- ⏳ secrets (not required)
- ✅ preview screenshots (not required)
- ✅ Build flatpak-x86_64 (not required)
- ✅ typos (not required)
- ✅ fmt (not required)
- ✅ Release (not required)
- ✅ clippy (not required)
- ✅ test (not required)
- ✅ cargo-deny (not required)
- ✅ unsafe (not required)
- ✅ dependency-review (not required)
- ✅ workflows (not required)
- ✅ translations (not required)
- ✅ flag-lists (not required)
- ✅ CodeQL (not required)
Change: 4 files, +100 / -2, 2 commit(s) by @R3disme
Merges into: main without conflicts
WoggleSL Review · requested by a maintainer from the review board
|
Squash-merged into WoggleSL Review · requested by a maintainer from the review board |
|
The wiki screenshots were retaken after this merge. Updated images:
|
What and why
Follow-up to #111/#113, left over in the list-editor branch. When a list is edited in the config editor pane, the editor sends new settings (duplicate and invalid line numbers) and highlights again from the first line.
ConfigParser::updatekept its own line counter, so duplicate/invalid highlights after an edit landed on the wrong lines. The counter now restarts at 0 onupdate, the same as iced's own highlighter.Also:
config-editorscreenshot scene (config-editor.png, mapped to the Config-Editor wiki page as well) so the pane has a picture on the wiki.How it was tested
cargo test --bin woggle config_editor: 3 passed. Withself.line = 0removed,new_settings_restart_line_numbersfails.tools/check_fmt.pyis clean, and clippy reports nothing in the changed files. No IRC involved.Wiki
Wiki: https://github.com/WoggleSL/woggle/wiki/Config-Editor
The screenshot workflow pushes
config-editor.pngafter merge, and then the picture gets added to that page. No behaviour change that users would read about.Checklist
mainpython3 tools/build.py) and the CI builds passPRIVACY.mdstill matches what the code sends and storesCTCP WOGGLEhandling still follow the review rules inCONTRIBUTING.md