Skip to content

Commit

Permalink
style: rename FigureName to AppName
Browse files Browse the repository at this point in the history
  • Loading branch information
mfacchinelli committed Sep 19, 2024
1 parent 0c2b8e1 commit e5d1785
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions app/DataVisualization.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
% DATAVISUALIZATION App for processing, exporting and visualizing MAG data.

properties (Constant, Access = private)
FigureName string = "MAG Data Visualization App"
AppName string = "MAG Data Visualization App"
end

properties (SetAccess = private)
Expand Down Expand Up @@ -119,23 +119,23 @@ function selectMission(app, mission)
app.addlistener("Figures", "PostSet", @app.figuresChanged);
app.Model.addlistener("AnalysisChanged", @app.modelChangedCallback);

app.UIFigure.Name = app.getFigureName(mission);
app.UIFigure.Name = app.getAppName(mission);
end
end

methods (Access = private)

function name = getFigureName(app, mission)
function name = getAppName(app, mission)

arguments
app
mission string {mustBeScalarOrEmpty} = string.empty()
end

if isempty(mission)
name = app.FigureName;
name = app.AppName;
else
name = compose("%s (%s)", app.FigureName, mission);
name = compose("%s (%s)", app.AppName, mission);
end
end

Expand Down Expand Up @@ -424,7 +424,7 @@ function createComponents(app)
% Create figure and other UI components.
app.UIFigure = uifigure();
app.UIFigure.Position = [100, 100, 694, 429];
app.UIFigure.Name = app.getFigureName();
app.UIFigure.Name = app.getAppName();
app.UIFigure.Resize = "off";

pathToAppIcons = fullfile(fileparts(mfilename("fullpath")), "icons");
Expand Down

0 comments on commit e5d1785

Please sign in to comment.