Changeset 103 for trunk/UCore.pas


Ignore:
Timestamp:
Feb 9, 2022, 3:51:26 PM (3 years ago)
Author:
chronos
Message:
  • Added: Support for profile photo as URL.
  • Added: New UContactImage form to show profile photo in bigger size and with URL.
  • Modified: Profile photo image load/save handling moved to separate unit UContactImage.
  • Fixed: Some dynamically created forms were not translated.
  • Added: Remember last used file name for image open/save dialog.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UCore.pas

    r101 r103  
    8282    LastContactTabIndex: Integer;
    8383    LastContactFileName: string;
     84    LastPhotoFileName: string;
    8485    LastPropertyValueFileName: string;
    8586    MapUrl: string;
     
    237238  try
    238239    Contacts := TContactsFile(DataFile).Contacts;
    239     ShowModal;
    240     FormContacts.ReloadList;
    241     FormContacts.UpdateInterface;
    242     DataFile.Modified := True;
    243     FormMain.UpdateInterface;
     240    if ShowModal = mrOk then begin
     241      FormContacts.ReloadList;
     242      FormContacts.UpdateInterface;
     243      DataFile.Modified := True;
     244      FormMain.UpdateInterface;
     245    end;
    244246  finally
    245247    Free;
     
    469471    DefaultVcardVersion := ReadStringWithDefault('DefaultVcardVersion', '2.1');
    470472    MapUrl := ReadStringWithDefault('MapUrl', 'https://www.openstreetmap.org/search?query=');
     473    LastPhotoFileName := ReadStringWithDefault('LastPhotoFileName', '');
    471474  finally
    472475    Free;
     
    497500    WriteString('DefaultVcardVersion', DefaultVcardVersion);
    498501    WriteString('MapUrl', MapUrl);
     502    WriteString('LastPhotoFileName', LastPhotoFileName);
    499503  finally
    500504    Free;
Note: See TracChangeset for help on using the changeset viewer.