chore(UI): combine shader & disk cache clear#1297
Conversation
WalkthroughThis change removes the separate "clear disk cache" UI icon and button from the menu, consolidating disk cache clearing into the existing "clear shader cache" action. All references, UI elements, and icon logic related to the disk cache are deleted, and tooltips and headers are updated to reflect the unified behavior. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Menu
participant CacheManager
User->>Menu: Clicks "Clear Shader Cache" button
Menu->>CacheManager: Clear shader cache
alt Disk cache enabled
Menu->>CacheManager: Clear disk cache
end
Menu-->>User: Show unified tooltip/confirmation
Estimated code review effort2 (~12 minutes) Possibly related PRs
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (3)
🧠 Learnings (3)📓 Common learningssrc/Menu.cpp (2)Learnt from: alandtse Learnt from: davo0411 src/Utils/UI.cpp (1)Learnt from: davo0411 💤 Files with no reviewable changes (1)
🧰 Additional context used🧠 Learnings (3)📓 Common learningssrc/Menu.cpp (2)Learnt from: alandtse Learnt from: davo0411 src/Utils/UI.cpp (1)Learnt from: davo0411 ⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (8)
✨ Finishing Touches
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
Automated formatting by clang-format, prettier, and other hooks. See https://pre-commit.ci for details.
|
✅ A pre-release build is available for this PR: |
|
This isn't a feat. Chore or style. |
What the title says.
Moved all clear disk cache functionality to be conditional within the clear shader button. Having both was redundant, 99% of the time users needed to just press both buttons to achieve the goal of clearing cache,
Summary by CodeRabbit
New Features
UI Updates