Repository navigation
Conversation
Honor the desktop animated-icons setting: IconMotion.allowed() and IconMotion.animated() read the key through the same GLib.Settings idiom Motion uses for reduce-motion, with a has_key guard so a missing schema or key means on. A motion that is already playing may finish. Assisted-by: zoder:qwen38 AI-Scope: generated the animated-icons gate in icon_motion.vala and its test in motion_test.vala with the fixture schema key; prompts: honor the animated-icons setting in IconMotion, then simplify the test.
|
@coderabbitai review |
Walkthrough
Merge Risk:
|
| return _animated_settings == null || _animated_settings.get_boolean(ANIMATED_KEY); | ||
| } | ||
|
|
||
| internal static bool animated_icons_enabled_for_test() { |
There was a problem hiding this comment.
Make the gate test accessible to its build target.
motion-test compiles separately against the library's public VAPI. This internal method is absent from that VAPI, so the calls in test_animated_icons_gate() fail name resolution and block the test build. Compile the test with the implementation in the same Vala package, or test through the public API. (raw.githubusercontent.com)
Action not completed
|
Internal pre-review (not for merge).