Make trophy toast duration configurable (5-10s, default 6s) #1538
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
GPU
GUI
help wanted
question
Shaders
Video
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/KytyPS5--KytyPS5!1538
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1538/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Pipe530 on GitHub · 2026-10-15 19:49 UTC · original
Pipe530:pipe530-trophy-toast-duration-setting→main· +47 −1 · 9 files · 1 commits · merged 2026-10-15 23:37 UTCAdds a "Trophy notification duration" setting to the launcher settings dialog (global or per game), replacing the fixed 5s toast lifetime.
--trophy-duration <seconds>option.@coderabbitai[bot] on GitHub · 2026-10-15 19:54 UTC · original
📝 Walkthrough
The launcher adds a trophy notification duration setting with a default of 6 seconds and a permitted range of 5–10 seconds. It stores the value in configuration and passes it to the emulator as
--trophy-duration. The emulator parses the option, clamps the configured value throughConfig::GetTrophyDurationSeconds(), and uses it to set trophy notification expiration and fade-out timing.Suggested reviewers:
nmzikPriority: ⬇️ Low
Change: Feature
Merge Risk: 🔵 Low · up to
b4208Existing profiles show trophy toasts for five seconds rather than the new six-second default. This is a bounded, one-second behavior difference; correct the fallback before merging if preserving the stated default is required.
Pre-merge checks:
4 ·
1
Full details: Docstring Coverage
Explanation
Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 14 functions across 8 files. (1 skipped: 1 unsupported.)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share
Comment
@coderabbitai helpto get the list of available commands.@coderabbitai[bot] on GitHub · 2026-10-15 19:54 UTC · original · reviewed
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
1d3ef5cc-d39d-4eb2-bb5c-87095f4e7362📥 Commits
Reviewing files that changed from the base of the PR and between
9e41d8320aandb420860e6d.📒 Files selected for processing: 9
src/common/emulatorConfig.cppsrc/common/emulatorConfig.hsrc/graphics/presentation/systemOverlay.cppsrc/launcher/forms/configuration_edit_dialog.uisrc/launcher/include/configuration.hsrc/launcher/src/configuration.cppsrc/launcher/src/configurationEditDialog.cppsrc/launcher/src/mainDialog.cppsrc/main.cppIncluded review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.
@ -63,6 +64,7 @@ void Configuration::ReadGameSettingsValues(const Settings& s) {KYTY_CFG_GET(sync_raw_image_buffers);KYTY_CFG_GET(tessellation_enabled);trophy_enabled = s.value("trophy_enabled", trophy_enabled).toBool();KYTY_CFG_GET(trophy_duration_seconds);@coderabbitai[bot] on GitHub · 2026-10-15 19:54 UTC · original
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 13745
🏁 Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 7424
Preserve the 6-second default when loading an old profile.
When
ReadSettings(QSettings*)loads a profile withouttrophy_duration_seconds, the direct read assigns0instead of preserving the initialized6. The launcher passes0, and the emulator clamps it to5, so old profiles use 5-second toasts.🐛 Suggested fix
📝 Committable suggestion