[Bug 19350] remember iconPresetName when reopening#5232
[Bug 19350] remember iconPresetName when reopening#5232livecodepanos merged 4 commits intolivecode:develop-8.1from
Conversation
makes svgpath remember the iconPresetName when reopening stack http://quality.livecode.com/show_bug.cgi?id=19350
|
Thank you @BerndN. Looks good to me. Some minor changes in the bugfix note:
So
So the content of (This is based in this example bugfix note for widgets: https://raw.githubusercontent.com/livecode/livecode/develop/extensions/widgets/header/notes/17790.md) |
| put pProperties["flip vertically"] into mFlipVertically | ||
| put pProperties["angle"] into mAngle | ||
|
|
||
| put pProperties["iconPresetName"] into mPathName |
There was a problem hiding this comment.
You should put this in a if "iconPresetName" is among the keys of pProperties block so that existing saved instances of SVG widget do not error when they load.
|
@livecodeali thanks, now I understand better the recomendation to always use an if-then clause in onOpen. |
|
Thank you @BerndN. @livecodeali could you review please? |
|
@livecode-vulcan review ok df50706 |
|
💙 review by @livecodeali ok df50706 |
[Bug 19350] remember iconPresetName when reopening makes svgpath remember the iconPresetName when reopening stack http://quality.livecode.com/show_bug.cgi?id=19350
makes svgpath remember the iconPresetName when reopening stack
http://quality.livecode.com/show_bug.cgi?id=19350