File tree Expand file tree Collapse file tree 12 files changed +99
-429
lines changed
Expand file tree Collapse file tree 12 files changed +99
-429
lines changed Original file line number Diff line number Diff line change @@ -16,13 +16,10 @@ portable edition.
1616Common.config
1717--------------------------------------------------------------------------------
1818
19- Common.config is located in the %ProgramData%\DelphiDabbler\CodeSnip.4 folder
20- for the standard edition or in the AppData sub folder of the install directory
21- for the portable edition.
19+ Common.config is located in the in the %ProgramData%\DelphiDabbler\CodeSnip.4
20+ folder for the standard edition. It is not used by the portable edition.
2221
23- The data that is stored in Common.config includes a unique 32 digit hexadecimal
24- key based on attributes of your computer. The data that is used to create the
25- hexadecimal key cannot be recovered from the key.
22+ Only version information is stored in <code>Common.config</code>.
2623
2724
2825User.config
@@ -33,10 +30,7 @@ folder for the standard edition or in the AppData sub folder of the install
3330directory for the portable edition.
3431
3532The file stores several user-specific application data settings such as your
36- preferences. The only personal information is any user name or email address you
37- provided if you ever entered such information in a dialogue box. This is used
38- only to automatically enter the data in dialogue boxes where needed, to save you
39- re-typing it.
33+ preferences. None of this information is personally identifiable.
4034
4135
4236Spyware
Original file line number Diff line number Diff line change 354354 UUserDBBackup in ' UUserDBBackup.pas' ,
355355 UUserDBMgr in ' UUserDBMgr.pas' ,
356356 UUserDBMove in ' UUserDBMove.pas' ,
357- UUserDetails in ' UUserDetails.pas' ,
358357 UUtils in ' UUtils.pas' ,
359358 UVersionInfo in ' UVersionInfo.pas' ,
360359 UView in ' UView.pas' ,
Original file line number Diff line number Diff line change 551551 <DCCReference Include="UUserDBBackup.pas"/>
552552 <DCCReference Include="UUserDBMgr.pas"/>
553553 <DCCReference Include="UUserDBMove.pas"/>
554- <DCCReference Include="UUserDetails.pas"/>
555554 <DCCReference Include="UUtils.pas"/>
556555 <DCCReference Include="UVersionInfo.pas"/>
557556 <DCCReference Include="UView.pas"/>
Original file line number Diff line number Diff line change @@ -102,6 +102,8 @@ TUserConfigFileUpdater = class(TConfigFileUpdater)
102102 procedure DeleteUpdatingPrefs ;
103103 // / <summary>Deletes unused UpdateChecks section.</summary>
104104 procedure DeleteUpdateChecks ;
105+ // / <summary>Deletes unused UserInfo section.</summary>
106+ procedure DeleteUserInfo ;
105107 // / <summary>Effectively renames MainWindow section used prior to version
106108 // / 11 as WindowState:MainForm.</summary>
107109 procedure RenameMainWindowSection ;
@@ -330,6 +332,13 @@ procedure TUserConfigFileUpdater.DeleteUpdatingPrefs;
330332 DeleteIniSection(' Prefs:Updating' , CfgFileName);
331333end ;
332334
335+ procedure TUserConfigFileUpdater.DeleteUserInfo ;
336+ begin
337+ if not TFile.Exists(CfgFileName, False) then
338+ CreateNewFile;
339+ DeleteIniSection(' UserInfo' , CfgFileName);
340+ end ;
341+
333342class function TUserConfigFileUpdater.GetFileVersion : Integer;
334343begin
335344 Result := FileVersion;
Original file line number Diff line number Diff line change @@ -242,6 +242,7 @@ procedure TFirstRun.UpdateUserCfgFile(out Changes: TFirstRunCfgChangeSet);
242242 fUserConfigFile.DeleteProxyServerSection;
243243 fUserConfigFile.DeleteUpdatingPrefs;
244244 fUserConfigFile.DeleteUpdateChecks;
245+ fUserConfigFile.DeleteUserInfo;
245246 end ;
246247
247248 { $IFNDEF PORTABLE}
Original file line number Diff line number Diff line change @@ -230,9 +230,7 @@ procedure TCodeExportDlg.WriteOutputFile;
230230var
231231 OutData: TEncodedData; // receives export file content
232232begin
233- OutData := TCodeExporter.ExportSnippets(
234- TUserInfo.CreateNul, frmSnippets.SelectedSnippets
235- );
233+ OutData := TCodeExporter.ExportSnippets(frmSnippets.SelectedSnippets);
236234 TFileIO.WriteAllBytes(StrTrim(edFile.Text), OutData.Data);
237235end ;
238236
Original file line number Diff line number Diff line change 11inherited CodeImportDlg: TCodeImportDlg
22 Caption = ' Import Wizard'
33 ExplicitWidth = 565
4- ExplicitHeight = 433
4+ ExplicitHeight = 436
55 PixelsPerInch = 96
66 TextHeight = 13
77 inherited pnlBody: TPanel
88 Height = 321
99 ExplicitHeight = 321
1010 inherited pcWizard: TPageControl
1111 Height = 288
12- ActivePage = tsUpdate
12+ ActivePage = tsFile
1313 ExplicitHeight = 288
1414 object tsInfo: TTabSheet
1515 Caption = ' tsInfo'
1616 TabVisible = False
17+ ExplicitLeft = 0
18+ ExplicitTop = 0
19+ ExplicitWidth = 0
20+ ExplicitHeight = 0
1721 object lblIntro: TLabel
1822 Left = 0
1923 Top = 8
@@ -33,15 +37,15 @@ inherited CodeImportDlg: TCodeImportDlg
3337 object lblFile: TLabel
3438 Left = 0
3539 Top = 8
36- Width = 220
40+ Width = 230
3741 Height = 13
3842 Caption = ' Open import &file: (click button to browse for file)'
3943 FocusControl = edFile
4044 end
4145 object lblLoadFile: TLabel
4246 Left = 0
4347 Top = 72
44- Width = 172
48+ Width = 179
4549 Height = 13
4650 Caption = ' Click the Next button to read the file.'
4751 end
@@ -67,76 +71,22 @@ inherited CodeImportDlg: TCodeImportDlg
6771 TabOrder = 1
6872 end
6973 end
70- object tsUserInfo: TTabSheet
71- Caption = ' tsUserInfo'
72- ImageIndex = 2
73- TabVisible = False
74- object lblName: TLabel
75- Left = 0
76- Top = 8
77- Width = 31
78- Height = 13
79- Caption = ' Name:'
80- end
81- object lblEmail: TLabel
82- Left = 0
83- Top = 45
84- Width = 28
85- Height = 13
86- Caption = ' Email:'
87- end
88- object lblComments: TLabel
89- Left = 0
90- Top = 85
91- Width = 52
92- Height = 13
93- Caption = ' Comments:'
94- end
95- object edComments: TMemo
96- Left = 72
97- Top = 82
98- Width = 297
99- Height = 154
100- ParentColor = True
101- ReadOnly = True
102- ScrollBars = ssVertical
103- TabOrder = 2
104- end
105- object edName: TEdit
106- Left = 72
107- Top = 3
108- Width = 297
109- Height = 21
110- ParentColor = True
111- ReadOnly = True
112- TabOrder = 0
113- end
114- object edEmail: TEdit
115- Left = 72
116- Top = 42
117- Width = 297
118- Height = 21
119- ParentColor = True
120- ReadOnly = True
121- TabOrder = 1
122- end
123- end
12474 object tsUpdate: TTabSheet
12575 Caption = ' tsUpdate'
12676 ImageIndex = 3
12777 TabVisible = False
12878 object lblImportList: TLabel
12979 Left = 0
13080 Top = 53
131- Width = 86
81+ Width = 91
13282 Height = 13
13383 Caption = ' Imported &snippets:'
13484 FocusControl = lvImports
13585 end
13686 object lblSelectedSnippet: TLabel
13787 Left = 0
13888 Top = 217
139- Width = 82
89+ Width = 83
14090 Height = 13
14191 Caption = ' S&elected snippet:'
14292 FocusControl = edRename
@@ -203,6 +153,10 @@ inherited CodeImportDlg: TCodeImportDlg
203153 Caption = ' tsFinish'
204154 ImageIndex = 5
205155 TabVisible = False
156+ ExplicitLeft = 0
157+ ExplicitTop = 0
158+ ExplicitWidth = 0
159+ ExplicitHeight = 0
206160 object lblFinish: TLabel
207161 Left = 0
208162 Top = 8
You can’t perform that action at this time.
0 commit comments