Changeset 124 for trunk


Ignore:
Timestamp:
Nov 26, 2016, 1:45:20 PM (8 years ago)
Author:
chronos
Message:
  • Modified: Show project file name at start of application title.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormMain.pas

    r122 r124  
    618618  AHide.Enabled := FormMain.Visible;
    619619
    620   Title := Application.Title;
    621   if Assigned(Core.AcronymDb) and (ExtractFileName(Core.AcronymDb.FileName) <> '') then
    622     if Assigned(Core.AcronymDb) then Title := Title + ' - ' + ExtractFileName(Core.AcronymDb.FileName);
    623   if Assigned(Core.AcronymDb) and Core.AcronymDb.Modified then Title := Title + ' (' + SModified + ')';
     620  Title := '';
     621  if Assigned(Core.AcronymDb) and (ExtractFileName(Core.AcronymDb.FileName) <> '') then begin
     622    Title := ExtractFileName(Core.AcronymDb.FileName);
     623    if Core.AcronymDb.Modified then Title := Title + ' (' + SModified + ')';
     624  end;
     625  if Title <> '' then Title := Title + ' - ';
     626  Title := Title + Application.Title;
    624627  Caption := Title;
    625628end;
Note: See TracChangeset for help on using the changeset viewer.