Changeset 151 for trunk/Forms/UFormMain.pas
- Timestamp:
- Oct 16, 2017, 2:31:46 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.pas
r150 r151 689 689 RootKey := HKEY_CURRENT_USER; 690 690 OpenKey(DefaultRegKey, True); 691 if ValueExists('LanguageCode') then692 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);696 691 AFilterSameLength.Checked := ReadBoolWithDefault('SameLength', False); 697 692 AFilterSameLetterCase.Checked := ReadBoolWithDefault('SameLetterCase', False); … … 722 717 RootKey := HKEY_CURRENT_USER; 723 718 OpenKey(DefaultRegKey, True); 724 if Assigned(Core.CoolTranslator1.Language) and (Core.CoolTranslator1.Language.Code <> '') then725 WriteString('LanguageCode', Core.CoolTranslator1.Language.Code)726 else DeleteValue('LanguageCode');727 WriteBool('AlwaysOnTop', Core.AlwaysOnTop);728 WriteBool('StartMinimizedToTray', Core.StartMinimizedToTray);729 719 WriteBool('SameLength', AFilterSameLength.Checked); 730 720 WriteBool('SameLetterCase', AFilterSameLetterCase.Checked);
Note:
See TracChangeset
for help on using the changeset viewer.