@@ -99,7 +99,9 @@ function saveSettings(isReviewed,numLoad)
99
99
100
100
% Code that executes after component creation
101
101
function startupFcn(app )
102
-
102
+
103
+ % Copy title
104
+ app.ReviewTitle.Text = app .WelcomeTitle .Text ;
103
105
104
106
% Switch tab to review if has not been reviewed yet
105
107
if isfile(fullfile(" Utilities" ," ProjectSettings.mat" ))
@@ -110,11 +112,14 @@ function startupFcn(app)
110
112
numLoad = 1 ; % Initialize counter
111
113
end
112
114
113
- % Switch tab for review
115
+ % Select tab to display
114
116
if ~isReviewed && numLoad > 2
115
117
isReviewed = true ;
116
- app.TabGroup.SelectedTab = app .TabReview ;
118
+ app.FeedBackGrid.Parent = app .StartUpAppUIFigure ;
119
+ else
120
+ app.WelcomeGrid.Parent = app .StartUpAppUIFigure ;
117
121
end
122
+ app.InitPosition = app .StartUpAppUIFigure .Position ;
118
123
119
124
% Save new settings
120
125
app .saveSettings(isReviewed ,numLoad )
@@ -135,10 +140,6 @@ function startupFcn(app)
135
140
websave(fullfile(" Utilities/SurveyLinks.mat" ),Answer .Body .Data .download_url );
136
141
catch
137
142
end
138
-
139
- % Prepopulate the App Grid:
140
- app.WelcomeGrid.Parent = app .StartUpAppUIFigure ;
141
- app.InitPosition = app .StartUpAppUIFigure .Position ;
142
143
end
143
144
144
145
% Close request function: StartUpAppUIFigure
@@ -309,7 +310,7 @@ function createComponents(app)
309
310
app.ReviewText = uilabel(app .FeedBackGrid );
310
311
app.ReviewText.HorizontalAlignment = ' center' ;
311
312
app.ReviewText.WordWrap = ' on' ;
312
- app.ReviewText.FontSize = 18 ;
313
+ app.ReviewText.FontSize = 14 ;
313
314
app.ReviewText.Layout.Row = 2 ;
314
315
app.ReviewText.Layout.Column = [1 3 ];
315
316
app.ReviewText.Text = ' Please help us improve your experience by answering a few questions.' ;
0 commit comments