<div dir="ltr">This <a href="https://github.com/sugarlabs/sugar-web/pull/73">https://github.com/sugarlabs/sugar-web/pull/73</a> works perfectly fine.<br><br><br>I did have a solution, but it was similar to the way I did in activitypalette.js (callin<font color="#333333" face="Consolas, Liberation Mono, Courier, monospace"><span style="line-height:20px;white-space:nowrap">g env.getEnvironment() and </span></font><div>
<font color="#333333" face="Consolas, Liberation Mono, Courier, monospace"><span style="line-height:20px;white-space:nowrap">setting the title there in activitypalette.js). There was no point in repeating it again. </span></font></div>
<div><font color="#333333" face="Consolas, Liberation Mono, Courier, monospace"><span style="line-height:20px;white-space:nowrap"><br></span></font></div><div>So i thought I'd better leave it to the expert. :)<br></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On 1 August 2013 16:58, Manuel Quiñones <span dir="ltr"><<a href="mailto:manuq@laptop.org" target="_blank">manuq@laptop.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
2013/7/31 Suraj K S <<a href="mailto:suraj.gillespie@gmail.com">suraj.gillespie@gmail.com</a>>:<br>
<div class="im">> Hi Manuel,<br>
><br>
> I'm afraid even <a href="https://github.com/sugarlabs/sugar-web/pull/71/files" target="_blank">https://github.com/sugarlabs/sugar-web/pull/71/files</a> still<br>
> doesn't completely fix the problem.<br>
><br>
> Try this:<br>
> 1) Open activity.<br>
> 2) Change the activity title in the activity palette. Then close the<br>
> activity.<br>
> 3)Open then open the activity again. You'll find the default activity title.<br>
> (Your previous title will have been overwritten)<br>
<br>
</div>Thanks a lot for testing and for the testcase! Of course we should<br>
set the default metadata only if the activity is not resuming, ie<br>
started from scratch. I was expecting a repatch from you :) Here is<br>
mine:<br>
<br>
<a href="https://github.com/sugarlabs/sugar-web/pull/72/files" target="_blank">https://github.com/sugarlabs/sugar-web/pull/72/files</a><br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
.. manuq ..<br>
</font></span></blockquote></div><br></div>