Dispatcher: fix action deleted arg
Font file or user style tweak can be deleted (outside of the program) after assigning an action with them as arg. Fix displaying the action in Gesture manager / Profiles. Check for font/tweak existence before executing. Closes https://github.com/koreader/koreader/issues/13479.
@poire-z minor nits in tweak id - a space at the end. Fixing will break users' settings. https://github.com/koreader/koreader/blob/2a10f7188ba4c6b7073d5201e3c26f78dfcaf40f/frontend/ui/data/css_tweaks.lua#L100 https://github.com/koreader/koreader/blob/2a10f7188ba4c6b7073d5201e3c26f78dfcaf40f/frontend/ui/data/css_tweaks.lua#L107 https://github.com/koreader/koreader/blob/2a10f7188ba4c6b7073d5201e3c26f78dfcaf40f/frontend/ui/data/css_tweaks.lua#L113
Oh, sorry for that :/ What would happen if we fix these, and users have them with spaces ? Crash or just not effect ? (These must be quite rarely used/enabled, and it will probably noticed if they were needed but have no longer effect.)
With this PR, just no effect.
@poire-z minor nits in tweak id - a space at the end. Fixing will break users' settings.
https://github.com/koreader/koreader/blob/2a10f7188ba4c6b7073d5201e3c26f78dfcaf40f/frontend/ui/data/css_tweaks.lua#L100
https://github.com/koreader/koreader/blob/2a10f7188ba4c6b7073d5201e3c26f78dfcaf40f/frontend/ui/data/css_tweaks.lua#L107
https://github.com/koreader/koreader/blob/2a10f7188ba4c6b7073d5201e3c26f78dfcaf40f/frontend/ui/data/css_tweaks.lua#L113
Can’t one-time migration help?