Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #61 - change title bar to 'Morse Runner - Community Edition' #69

Merged
merged 1 commit into from
Oct 13, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions Main.pas
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ procedure TMainForm.FormCreate(Sender: TObject);
RichEdit1.Align := alClient;
RichEdit1.Font.Name:= 'Consolas';
RichEdit1.Font.Size:= 11;
Self.Caption:= format('Morse Runner %s', [sVersion]);
Self.Caption:= 'Morse Runner - Community Edition';
Label12.Caption:= format('Morse Runner %s ', [sVersion]);
Label13.Caption:= Label12.Caption;
Label14.Caption:= Label12.Caption;
Expand Down Expand Up @@ -949,12 +949,10 @@ procedure TMainForm.SetMyExchange(const AExchange: string);
procedure TMainForm.UpdateTitleBar;
begin
// Adding a contest: consider application's title bar.
if Ini.ActiveContest = nil then
Caption := 'Morse Runner'
else if (SimContest = scHst) and not HamName.IsEmpty then // for HST, add operator name
Caption := Format('Morse Runner - %s: %s', [Ini.ActiveContest.Name, HamName])
else // Default is: Morse Runner - <contest name>
Caption := Format('Morse Runner - %s', [Ini.ActiveContest.Name]);
if (SimContest = scHst) and not HamName.IsEmpty then // for HST, add operator name
Caption := Format('Morse Runner - Community Edition: %s', [HamName])
else // Default is: Morse Runner - Community Edition
Caption := 'Morse Runner - Community Edition';
end;


Expand Down