Skip to content

Commit

Permalink
Added wait for map info in widget script, to avoid previous author to…
Browse files Browse the repository at this point in the history
… be displayed. (#1261)
  • Loading branch information
TheMaximum committed Aug 29, 2023
1 parent 1844bc3 commit 90d08dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pyplanet/apps/contrib/info/templates/mapinfo.Script.Txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ declare CMlQuad Author_Flag <=> (Page.GetFirstChild("author_flag") as CMlQuad);

declare Boolean Show_Login = False;

wait(Map != Null);
if (Map != Null) {
Author_Label.SetText(Map.AuthorNickName);
Author_Flag.ChangeImageUrl(Map.AuthorZoneIconUrl);
Expand Down

0 comments on commit 90d08dd

Please sign in to comment.