mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-11 16:33:22 -06:00
shortcuts.export and shortcuts.import read `path` only when it was a string, so a `path` such as 5 or true was dropped and the file dialog opened. They now return "`path` must be a string" and open no dialog; an omitted or null `path` still asks for the file. shortcuts.set (`id`, `shortcut`), shortcuts.list (`query`) and shortcuts.preset (`name`) give the same error for a value that is not a string, and shortcuts.set gives "`force` must be true or false" for a `force` that is not true, false or null. Nothing changes when a param is rejected.