1
1
Fork 0
mirror of https://github.com/FellippeHeitor/InForm.git synced 2025-01-14 19:49:33 +00:00

Prevents calling PlayGif when no Gif was properly loaded.

This commit is contained in:
FellippeHeitor 2019-05-01 20:30:12 -03:00
parent e0115a84d0
commit cf9029d077

View file

@ -4069,6 +4069,7 @@ SUB SaveForm (ExitToQB64 AS _BYTE, SaveOnlyFrm AS _BYTE)
a$ = a$ + " 0)"
END IF
PRINT #TextFileNum, a$
PRINT #TextFileNum, " __UI_RegisterResult = 0"
IF PreviewControls(i).Type = __UI_Type_ContextMenu THEN
PRINT #TextFileNum,
@ -4130,7 +4131,7 @@ SUB SaveForm (ExitToQB64 AS _BYTE, SaveOnlyFrm AS _BYTE)
PRINT #TextFileNum, a$
IF AddGifExtension AND PreviewAutoPlayGif(i) THEN
a$ = " PlayGif __UI_NewID"
a$ = " IF __UI_RegisterResult THEN PlayGif __UI_NewID"
PRINT #TextFileNum, a$
END IF
CASE ELSE