Skip to content

Commit

Permalink
fix(developer): fix issues with template and presentation
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdurdin committed Jul 14, 2022
1 parent d294684 commit b702b7d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions developer/src/tike/child/UfrmKeymanWizard.pas
Original file line number Diff line number Diff line change
Expand Up @@ -3323,6 +3323,7 @@ procedure TfrmKeymanWizard.SelectTouchLayoutTemplate(APromptChange: Boolean);
PromptChange := APromptChange;
if ShowModal = mrOk then
begin
frameTouchLayout.SaveToString;
frameTouchLayout.TemplateFileName := TemplateFileName;
frameTouchLayout.Load('', True, False); // I4034
Self.Modified := True;
Expand Down
9 changes: 7 additions & 2 deletions developer/src/tike/xml/layoutbuilder/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -954,10 +954,15 @@ $(function() {
$('#selPlatform').val(data.platform);
}
builder.selectPlatform();
if(data.presentation && builder.presentations[data.presentation]) {
if(data.presentation &&
builder.presentations[data.presentation] &&
$('#selPlatformPresentation option[value="'+data.presentation+'"]').length) {
$('#selPlatformPresentation').val(data.presentation);
builder.prepareLayer();
} else {
// The last selected presentation is no longer available; select the first option instead
$('#selPlatformPresentation').val($('#selPlatformPresentation option:first').val());
}
builder.prepareLayer();
if(data.layer && KVKL[builder.lastPlatform][data.layer]) {
$('#selLayer').val(data.layer);
builder.selectLayer();
Expand Down

0 comments on commit b702b7d

Please sign in to comment.