Ignore:
Timestamp:
Mar 16, 2022, 11:35:08 AM (3 years ago)
Author:
chronos
Message:
  • Added: QR code image visible in contact others tab. It can be saved as image to file.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormImage.pas

    r103 r123  
    7373procedure TFormImage.ButtonLoadClick(Sender: TObject);
    7474begin
    75   OpenPictureDialog1.FileName := Core.LastPhotoFileName;
     75  OpenPictureDialog1.InitialDir := ExtractFileDir(Core.LastPhotoFileName);
     76  OpenPictureDialog1.FileName := ExtractFileName(Core.LastPhotoFileName);
    7677  if OpenPictureDialog1.Execute then begin
    7778    Image.LoadFromFile(OpenPictureDialog1.FileName);
     
    8788procedure TFormImage.ButtonSaveClick(Sender: TObject);
    8889begin
    89   SavePictureDialog1.FileName := Core.LastPhotoFileName;
     90  SavePictureDialog1.InitialDir := ExtractFileDir(Core.LastPhotoFileName);
     91  SavePictureDialog1.FileName := ExtractFileName(Core.LastPhotoFileName);
    9092  if SavePictureDialog1.Execute then begin
    9193    Image.SaveToFile(SavePictureDialog1.FileName);
Note: See TracChangeset for help on using the changeset viewer.