Changeset 128 for trunk/Forms/UFormOptions.pas
- Timestamp:
- Jan 17, 2022, 4:53:31 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormOptions.pas
r126 r128 16 16 ButtonOk: TButton; 17 17 ButtonCancel: TButton; 18 CheckBox 1: TCheckBox;18 CheckBoxReopenLastFile: TCheckBox; 19 19 CheckBoxDPIAuto: TCheckBox; 20 20 CheckBoxOptimizeAddSub: TCheckBox; 21 CheckBoxDebugEnabled: TCheckBox; 21 22 CheckBoxOptimizeCopyMultiply: TCheckBox; 22 23 CheckBoxOptimizeSetZero: TCheckBox; … … 96 97 ComboBoxTheme.ItemIndex := ComboBoxTheme.Items.IndexOfObject(Core.ThemeManager.Theme); 97 98 if ComboBoxTheme.ItemIndex = -1 then ComboBoxTheme.ItemIndex := 0; 98 CheckBox 1.Checked := Core.OpenProjectOnStart;99 CheckBoxReopenLastFile.Checked := Core.OpenProjectOnStart; 99 100 CheckBoxOptimizeAddSub.Checked := Core.Optimizations.AddSub; 100 101 CheckBoxOptimizeSetZero.Checked := Core.Optimizations.SetZero; … … 108 109 SpinEditCellSize.Value := Core.CellSize; 109 110 SpinEditMemorySize.Value := Core.MemorySize; 111 CheckBoxDebugEnabled.Checked := Core.DebugEnabled; 112 if Core.OptionsFormTabIndex < PageControl1.PageCount then 113 PageControl1.TabIndex := Core.OptionsFormTabIndex 114 else PageControl1.TabIndex := 0; 110 115 UpdateInterface; 111 116 end; … … 117 122 if ComboBoxTheme.ItemIndex <> -1 then 118 123 Core.ThemeManager.Theme := TTheme(ComboBoxTheme.Items.Objects[ComboBoxTheme.ItemIndex]); 119 Core.OpenProjectOnStart := CheckBox 1.Checked;124 Core.OpenProjectOnStart := CheckBoxReopenLastFile.Checked; 120 125 Core.ScaleDPI1.DPI := Point(SpinEditDPIX.Value, SpinEditDPIY.Value); 121 126 Core.ScaleDPI1.AutoDetect := CheckBoxDPIAuto.Checked; … … 128 133 Core.Optimizations.RelativeIndexes := CheckBoxOptimizeRelativeIndexes.Checked; 129 134 Core.Optimizations.CopyMultiply := CheckBoxOptimizeCopyMultiply.Checked; 135 Core.DebugEnabled := CheckBoxDebugEnabled.Checked; 136 Core.OptionsFormTabIndex := PageControl1.TabIndex; 130 137 end; 131 138
Note:
See TracChangeset
for help on using the changeset viewer.