mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-23 04:19:24 +02:00
IDE: Show also Lazarus SVN revision in IDE caption when it is available.
git-svn-id: trunk@58779 -
This commit is contained in:
parent
1e346194fb
commit
d2ae489674
@ -935,6 +935,7 @@ resourcestring
|
|||||||
lisAmbiguousFileFoundThisFileCanBeMistakenWithDelete = 'Ambiguous file '
|
lisAmbiguousFileFoundThisFileCanBeMistakenWithDelete = 'Ambiguous file '
|
||||||
+'found: "%s"%sThis file can be mistaken with "%s"%sDelete the ambiguous file?';
|
+'found: "%s"%sThis file can be mistaken with "%s"%sDelete the ambiguous file?';
|
||||||
lisLazarusEditorV = 'Lazarus IDE v%s';
|
lisLazarusEditorV = 'Lazarus IDE v%s';
|
||||||
|
lisLazarusSVNRev = 'rev.%s';
|
||||||
lisnewProject = '(new project)';
|
lisnewProject = '(new project)';
|
||||||
liscompiling = '%s (compiling ...)';
|
liscompiling = '%s (compiling ...)';
|
||||||
lisdebugging = '%s (debugging ...)';
|
lisdebugging = '%s (debugging ...)';
|
||||||
|
@ -8380,11 +8380,16 @@ procedure TMainIDE.UpdateCaption;
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
var
|
var
|
||||||
NewCaption, NewTitle, ProjectName, DirName: String;
|
rev, NewCaption, NewTitle, ProjectName, DirName: String;
|
||||||
begin
|
begin
|
||||||
if MainIDEBar = nil then Exit;
|
if MainIDEBar = nil then Exit;
|
||||||
if ToolStatus = itExiting then Exit;
|
if ToolStatus = itExiting then Exit;
|
||||||
NewCaption := Format(lisLazarusEditorV, [GetLazarusVersionString]);
|
rev := GetLazarusRevision;
|
||||||
|
if (rev = '') or (rev = 'Unknown') then
|
||||||
|
NewCaption := Format(lisLazarusEditorV, [GetLazarusVersionString])
|
||||||
|
else
|
||||||
|
NewCaption := Format(lisLazarusEditorV + ' ' + lisLazarusSVNRev,
|
||||||
|
[GetLazarusVersionString, rev]);
|
||||||
NewTitle := NewCaption;
|
NewTitle := NewCaption;
|
||||||
if MainBarSubTitle <> '' then
|
if MainBarSubTitle <> '' then
|
||||||
NewCaption := AddToCaption(NewCaption, MainBarSubTitle)
|
NewCaption := AddToCaption(NewCaption, MainBarSubTitle)
|
||||||
|
Loading…
Reference in New Issue
Block a user