Changeset 49 for trunk/UCore.pas
- Timestamp:
- Dec 3, 2021, 6:52:12 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UCore.pas
r48 r49 81 81 FileClosed: Boolean; 82 82 ReopenLastFileOnStart: Boolean; 83 LastContactTabIndex: Integer; 83 84 ToolbarVisible: Boolean; 84 85 function GetProfileImage: TImage; … … 278 279 279 280 procedure TCore.DataModuleCreate(Sender: TObject); 281 {$IFDEF Linux} 280 282 const 281 283 LinuxLanguagesDir = '/usr/share/vCardStudio/Languages'; 284 {$ENDIF} 282 285 begin 283 286 {$IFDEF Linux} … … 427 430 FormMain.MenuItemToolbar.Checked := ReadBoolWithDefault('ToolBarVisible', True); 428 431 ReopenLastFileOnStart := ReadBoolWithDefault('ReopenLastFileOnStart', True); 432 LastContactTabIndex := ReadIntegerWithDefault('LastContactTabIndex', 0); 429 433 finally 430 434 Free; … … 448 452 WriteBool('ToolBarVisible', FormMain.MenuItemToolbar.Checked); 449 453 WriteBool('ReopenLastFileOnStart', ReopenLastFileOnStart); 454 WriteInteger('LastContactTabIndex', LastContactTabIndex); 450 455 finally 451 456 Free; … … 464 469 if not Assigned(ProfileImage) then begin 465 470 ProfileImage := TImage.Create(nil); 466 ProfileImage.Picture.LoadFromFile(ProfilePhotoFileName);467 471 if FileExists(ProfilePhotoFileName) then 468 472 ProfileImage.Picture.LoadFromFile(ProfilePhotoFileName);
Note:
See TracChangeset
for help on using the changeset viewer.