When we download from the gallery, please return both the altered gallery code and the original unaltered code so user can choose the base to build next version on.
Most everyone learns the hard way that saving to the gallery alters their code in ways that it may no longer work as it did before when running on desktop. After figuring out what has happened and laboriously un-doing the alterations that happen when saving to the gallery, we develop schemes to keep separate desktop versions of gallery apps in sync. These schemes should not be necessary.