Repository navigation
Add tray customization and reliable configuration handling - #1
Merged
Merged
Conversation
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.
Customize MicroBin and keep its tray appearance reliable
MicroBin supports custom tray icons and configurable Windows confirmation, progress, and sound. It preserves legacy labels and silent-empty defaults. The app now restores its configured tray appearance after Explorer restarts and avoids repeated missing-config warnings in read-only folders.
Why — limited customization and unreliable recovery
The original app only customized four labels and hid operation failures. The upstream tray library lost custom appearance after Explorer restarts. A missing configuration in a read-only folder caused a warning on every launch.
What — compatible settings and persistent tray appearance
How — preserve settings and reuse native tray state
--- config: flowchart: wrappingWidth: 1000 --- flowchart TD A["Read config.toml"] --> B{"Settings available?"} B -->|Yes| C["Validate settings"] B -->|No| D["Create settings or<br/>use defaults"] C --> E["Create tray and<br/>save appearance"] D --> E E --> F["Run native menu<br/>actions"] E --> G["Explorer restarts"] G --> H["Restore saved icon,<br/>tooltip and callback"]In one line: More customization, preserved configuration, and recovery of the selected tray appearance.
Out-of-Scope Feedback
Testing
Independent testing completed on the final source and release package. The squash merge is on main at 1c9635d, with the same source tree as c2ab89c. Overall status: Partial, because native GUI checks remain unavailable. Seventeen checks passed, including the docs-only packaging follow-up; eight native Windows areas remain unverified. Passed commands and checks:
cargo fmt --all -- --checkcargo test --locked: 12 configuration tests, including real read-only directory and unreadable-file checks on Linux.cargo clippy --locked --all-targets -- -D warningscargo build --locked --release --target x86_64-pc-windows-gnucargo test --locked -p tray-item --lib --target x86_64-pc-windows-gnu --no-run: Windows recovery tests compile; no execution claimed.cargo clippy --locked --all-targets --target x86_64-pc-windows-gnu -- -D warningscargo clippy --locked -p tray-item --all-targets --target x86_64-pc-windows-gnu -- -D warningsgit diff --checkThe initial vendored build exposed six upstream Clippy warnings. Mechanical fixes resolved those warnings. Cargo still emits a harmless redundant homepage/repository manifest warning.
Native Windows tray, real TaskbarCreated delivery, ICO loading/fallback, menus, dialogs, confirmation/cancellation, progress, sound, Windows folder ACL behavior, and OS theme checks remain unverified. No Recycle Bin contents were touched. Main CI passed on Linux and Windows: https://github.com/vaniley/MicroBin/actions/runs/44183242589. Windows executed 10 configuration tests and 3 saved-state tests, strict lint, and the MSVC release build. This native test execution does not verify the tray GUI. No screenshots or recordings exist because no native Windows UI could run.
Release package verification confirmed ZIP integrity, checksums, the exact CI executable, GUI subsystem, icon resources, imports, license, configuration example, and source provenance. The package includes the Visual C++ x64 runtime prerequisite in its release notes. The executable was not launched by the agent.
Risk Assessment
3/10 — Low. Verdict: Safe to ship, with a manual Windows check before release.
Review found no blocking issues. It confirmed saved-state sharing, lock release before Shell calls, callback identity, custom icon lifetime, and existing-file safety. The Windows-only dependency cleanup followed review and did not change recovery logic.
Remaining concerns: native runtime behavior is unverified; the project maintains a local native-library patch; the pre-existing narrow shutdown race remains a separate finding.
Release
Merged into main and published as the latest stable release: https://github.com/vaniley/MicroBin/releases/tag/v0.1.0.
The Windows x64 ZIP comes from the successful main MSVC build. It includes configuration, bilingual documentation, patch license, provenance, and release notes. A fresh download of the published assets passed checksum verification. The package requires the Visual C++ 2015–2022 x64 runtime if VCRUNTIME140.dll is missing.
UI brief
Reuse the native tray menu, icons, tooltips, and Shell dialogs. No layout, token, or custom theme changes. Added states: Explorer recovery and missing configuration in a read-only folder. UI gaps: native interaction, theme, and screenshot evidence remain unverified because no Windows runtime is available.
Setup notes
Linux verification requires stable Rust. Windows cross-builds additionally require MinGW-w64 GCC/windres and the Rust Windows GNU target. The root package is the default workspace member so Linux checks do not build a desktop backend. Windows CI additionally runs
cargo test --locked -p tray-item --liband strict lint for the local library. The repository has no configured machine blueprint.Session Details
(aside)to your comment to have me ignore it.