Changeset 82 for trunk/UCore.pas


Ignore:
Timestamp:
Dec 21, 2021, 5:16:41 PM (2 years ago)
Author:
chronos
Message:
  • Fixed: Settings option to load previously opened file wasn't working for disabled state.
  • Fixed: Disable Find action if no file is opened.
  • Modified: Move fields initialization method to TContact class and made it static so it is initialized only once.
  • Added: Allow to set default vCard version in settings dialog.
  • Modified: Add GTK2 theming support to snap package.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UCore.pas

    r76 r82  
    8383    GenerateCount: Integer;
    8484    ToolbarVisible: Boolean;
     85    DefaultVcardVersion: string;
    8586    function GetProfileImage: TImage;
    8687    procedure FileNew;
     
    453454    LastPropertyValueFileName := ReadStringWithDefault('LastPropertyValueFileName', '');
    454455    GenerateCount := ReadIntegerWithDefault('GenerateCount', 1);
     456    DefaultVcardVersion := ReadStringWithDefault('DefaultVcardVersion', '2.1');
    455457  finally
    456458    Free;
     
    479481    WriteString('LastPropertyValueFileName', LastPropertyValueFileName);
    480482    WriteInteger('GenerateCount', GenerateCount);
     483    WriteString('DefaultVcardVersion', DefaultVcardVersion);
    481484  finally
    482485    Free;
     
    506509  AFileSplit.Enabled := Assigned(DataFile);
    507510  AFileCombine.Enabled := Assigned(DataFile);
     511  AFind.Enabled := Assigned(DataFile);
    508512  AFindDuplicate.Enabled := Assigned(DataFile);
    509513  AGenerate.Enabled := Assigned(DataFile);
     
    525529      LastOpenedList1.AddItem(FileNameOption);
    526530    end else
    527     if (LastOpenedList1.Items.Count > 0) and FileExists(LastOpenedList1.Items[0]) then begin
     531    if ReopenLastFileOnStart and (LastOpenedList1.Items.Count > 0) and FileExists(LastOpenedList1.Items[0]) then begin
    528532      // Open last opened file
    529533      AFileNew.Execute;
Note: See TracChangeset for help on using the changeset viewer.