launcher: report cheat file save failures #669

Manually merged
github merged 1 commit from gh-pr/669/head into gh-pr/669/base 2026-11-26 09:28:43 +00:00
Owner

@⁠c0sxm0s on GitHub · 2026-09-17 11:47 UTC · original
c0sxm0s:patches-save-error → main · +7 −3 · 1 files · 1 commits · merged 2026-09-17 12:13 UTC

Summary

PatchesDialog::Save silently ignored QSaveFile failures (open, write, or
commit), leaving the status label showing the previous "Loaded N cheat(s)"
text, so users had no way to tell that their selection was not saved and
would find changes lost next launch. Other save paths in the launcher
(e.g. the compatibility database) already report save failures; bring the
cheats dialog in line by logging with qWarning and showing the error in the
dialog's status label.

Build

Windows, clang-cl 23.1.1, Qt 6.12.0, Ninja, Release: launcher builds clean.

**@⁠c0sxm0s** on GitHub · 2026-09-17 11:47 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/669) `c0sxm0s:patches-save-error` → `main` · +7 −3 · 1 files · 1 commits · merged 2026-09-17 12:13 UTC ## Summary `PatchesDialog::Save` silently ignored `QSaveFile` failures (open, write, or commit), leaving the status label showing the previous "Loaded N cheat(s)" text, so users had no way to tell that their selection was not saved and would find changes lost next launch. Other save paths in the launcher (e.g. the compatibility database) already report save failures; bring the cheats dialog in line by logging with qWarning and showing the error in the dialog's status label. ## Build Windows, clang-cl 23.1.1, Qt 6.12.0, Ninja, Release: launcher builds clean.
PatchesDialog::Save silently ignored QSaveFile failures, leaving the
status label showing the old "Loaded N cheat(s)" text so the user could
not tell that their selection was not saved. Report the failure in the
status label and the log instead.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:28:40 +00:00
github manually merged commit 26eada22b1 into gh-pr/669/base 2026-11-26 09:28:43 +00:00
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-09-17 11:52 UTC · original · edited 2026-09-17 12:13 UTC

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 17cf9bb9-6f7f-48b6-8aab-a5f94630e274

📥 Commits

Reviewing files that changed from the base of the PR and between bab1c3614c and 5b4daa3639.

📒 Files selected for processing (3)
  • src/launcher/include/updateChecker.h
  • src/launcher/src/patchesDialog.cpp
  • src/launcher/src/updateChecker.cpp

Included review availability: Your plan provides up to 10 included reviews per hour; 6 remain after this review.


📝 Walkthrough

Walkthrough

UpdateChecker now retains usable primary-feed data while checking the fallback feed and restores it when the fallback fails. PatchesDialog::Save now reports file-open, write, and commit failures through logging and the status label. Successful saves retain the existing confirmation message.

Suggested reviewers: distantmyth

Priority: ⬇️ Low

Change: Bug fix

Merge Risk: ⚪ Minimal · up to 5b4da

The update fallback and cheat-save error handling preserve usable results and provide clear failure feedback. No actionable merge-blocking risk remains.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning 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 2 functions across 3 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the primary change: reporting cheat file save failures in the launcher. It matches the main objective of the pull request.
Description check ✅ Passed The description is directly related to the changes. It explains the QSaveFile failure handling, user-visible status updates, logging behavior, and build validation.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

Comment @coderabbitai help to get the list of available commands.

**@⁠coderabbitai[bot]** on GitHub · 2026-09-17 11:52 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/669#issuecomment-5713884390) · edited 2026-09-17 12:13 UTC <!-- This is an auto-generated comment: summarize by coderabbit.ai --> <!-- review_stack_entry_start --> <a href="https://app.coderabbit.ai/change-stack/KytyPS5/KytyPS5/pull/669#gh-light-mode-only"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg" alt="Review Change Stack" width="202" height="32"></a><a href="https://app.coderabbit.ai/change-stack/KytyPS5/KytyPS5/pull/669#gh-dark-mode-only"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui-dark.svg" alt="Review Change Stack" width="202" height="32"></a> <!-- review_stack_entry_end --> <!-- recent_review_start --> No actionable comments were generated in the recent review. 🎉 <details> <summary>ℹ️ Recent review info</summary> <details> <summary>⚙️ Run configuration</summary> **Configuration used**: Path: .coderabbit.yaml **Review profile**: CHILL **Plan**: Advanced **Run ID**: `17cf9bb9-6f7f-48b6-8aab-a5f94630e274` </details> <details> <summary>📥 Commits</summary> Reviewing files that changed from the base of the PR and between bab1c3614c6d62015cbee6971b1ebe6651c83c69 and 5b4daa363985a7029f2a3670919d81d7f9184953. </details> <details> <summary>📒 Files selected for processing (3)</summary> * `src/launcher/include/updateChecker.h` * `src/launcher/src/patchesDialog.cpp` * `src/launcher/src/updateChecker.cpp` </details> **Included review availability:** Your plan provides up to 10 included reviews per hour; 6 remain after this review. </details> --- <!-- recent_review_end --> <!-- walkthrough_start --> <details> <summary>📝 Walkthrough</summary> ## Walkthrough `UpdateChecker` now retains usable primary-feed data while checking the fallback feed and restores it when the fallback fails. `PatchesDialog::Save` now reports file-open, write, and commit failures through logging and the status label. Successful saves retain the existing confirmation message. **Suggested reviewers:** `distantmyth` </details> <!-- walkthrough_end --> <!-- change_assessment_start --> **Priority:** ⬇️ Low <!-- change_assessment_commit:"5b4daa363985a7029f2a3670919d81d7f9184953" --> **Change:** Bug fix <!-- change_assessment_end --> <!-- final_review_risk_start --> **Merge Risk:** _⚪ Minimal_ · up to `5b4da` <!-- final_review_risk_coverage:{"sourceCommitId":"5b4daa363985a7029f2a3670919d81d7f9184953","coveredCommitId":"5b4daa363985a7029f2a3670919d81d7f9184953","kind":"reviewed"} --> The update fallback and cheat-save error handling preserve usable results and provide clear failure feedback. No actionable merge-blocking risk remains. <!-- final_review_risk_end --> <!-- pre_merge_checks_walkthrough_start --> <details> <summary>🚥 Pre-merge checks | ✅ 4 | ❌ 1</summary> ### ❌ Failed checks (1 warning) | Check name | Status | Explanation | Resolution | | :----------------: | :--------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :--------------------------------------------------------------------------------- | | Docstring Coverage | ⚠️ Warning | 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 2 functions across 3 files. | Write docstrings for the functions missing them to satisfy the coverage threshold. | <details> <summary>✅ Passed checks (4 passed)</summary> | Check name | Status | Explanation | | :------------------------: | :------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Title check | ✅ Passed | The title clearly and concisely describes the primary change: reporting cheat file save failures in the launcher. It matches the main objective of the pull request. | | Description check | ✅ Passed | The description is directly related to the changes. It explains the QSaveFile failure handling, user-visible status updates, logging behavior, and build validation. | | Linked Issues check | ✅ Passed | Check skipped because no linked issues were found for this pull request. | | Out of Scope Changes check | ✅ Passed | Check skipped because no linked issues were found for this pull request. | </details> </details> <!-- pre_merge_checks_walkthrough_end --> <!-- tips_start --> --- <sub>Comment `@coderabbitai help` to get the list of available commands.</sub> <!-- tips_end -->
This discussion has been locked. Commenting is limited to contributors.
No description provided.