Ignore:
Timestamp:
Oct 16, 2017, 2:31:46 PM (7 years ago)
Author:
chronos
Message:
  • Added: Option to disable auto reopen last file on start.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormMain.pas

    r150 r151  
    689689    RootKey := HKEY_CURRENT_USER;
    690690    OpenKey(DefaultRegKey, True);
    691     if ValueExists('LanguageCode') then
    692       Core.CoolTranslator1.Language := Core.CoolTranslator1.Languages.SearchByCode(ReadStringWithDefault('LanguageCode', ''))
    693       else Core.CoolTranslator1.Language := Core.CoolTranslator1.Languages.SearchByCode('');
    694     Core.AlwaysOnTop := ReadBoolWithDefault('AlwaysOnTop', False);
    695     Core.StartMinimizedToTray := ReadBoolWithDefault('StartMinimizedToTray', False);
    696691    AFilterSameLength.Checked := ReadBoolWithDefault('SameLength', False);
    697692    AFilterSameLetterCase.Checked := ReadBoolWithDefault('SameLetterCase', False);
     
    722717    RootKey := HKEY_CURRENT_USER;
    723718    OpenKey(DefaultRegKey, True);
    724     if Assigned(Core.CoolTranslator1.Language) and (Core.CoolTranslator1.Language.Code <> '') then
    725       WriteString('LanguageCode', Core.CoolTranslator1.Language.Code)
    726       else DeleteValue('LanguageCode');
    727     WriteBool('AlwaysOnTop', Core.AlwaysOnTop);
    728     WriteBool('StartMinimizedToTray', Core.StartMinimizedToTray);
    729719    WriteBool('SameLength', AFilterSameLength.Checked);
    730720    WriteBool('SameLetterCase', AFilterSameLetterCase.Checked);
Note: See TracChangeset for help on using the changeset viewer.