@@ -37,6 +37,7 @@ TAppSettings = class(TPersistableSettings, IIniPersistable)
3737 KEY_LOGFILEPATH = ' LogFilePath' ;
3838 KEY_LOGFILECREATIONMODE = ' LogFileCreationMode' ;
3939 KEY_LOGDESTINATIONS = ' LogDestinations' ;
40+ KEY_SHOW_FILE_HINT = ' ShowFileHint' ;
4041
4142 private
4243 FColorTheme : IStringSetting;
@@ -54,6 +55,7 @@ TAppSettings = class(TPersistableSettings, IIniPersistable)
5455 FLogFilePath : IStringSetting;
5556 FLogFileCreationMode : IIntegerSetting;
5657 FLogDestinations : IIntegerSetting;
58+ FShowFileHint : IBoolSetting;
5759 function GetColorTheme () : string;
5860 function GetComboHistoryCount () : Integer;
5961 function GetSearchHistoryCount () : Integer;
@@ -66,6 +68,7 @@ TAppSettings = class(TPersistableSettings, IIniPersistable)
6668 function GetLogFilePath () : string;
6769 function GetLogFileCreationMode () : ELogFileCreationMode;
6870 function GetLogDestinations () : TLogDestinations;
71+ function GetShowFileHint () : Boolean;
6972 function GetCheckNewVersionOnStartup : Boolean;
7073 procedure SetColorTheme (const Value : string);
7174 procedure SetComboHistoryCount (const Value : Integer);
@@ -78,6 +81,7 @@ TAppSettings = class(TPersistableSettings, IIniPersistable)
7881 procedure SetLogFilePath (const Value : string);
7982 procedure SetLogFileCreationMode (const Value : ELogFileCreationMode);
8083 procedure SetLogDestinations (const Value : TLogDestinations);
84+ procedure SetShowFileHint (const Value : Boolean);
8185 procedure SetCheckNewVersionOnStartup (const Value : Boolean);
8286
8387 protected
@@ -103,6 +107,7 @@ TAppSettings = class(TPersistableSettings, IIniPersistable)
103107 property LogFilePath : string read GetLogFilePath write SetLogFilePath;
104108 property LogFileCreationMode : ELogFileCreationMode read GetLogFileCreationMode write SetLogFileCreationMode;
105109 property LogDestinations : TLogDestinations read GetLogDestinations write SetLogDestinations;
110+ property ShowFileHint : Boolean read GetShowFileHint write SetShowFileHint;
106111 end ;
107112
108113implementation
@@ -213,6 +218,11 @@ function TAppSettings.GetLogDestinations() : TLogDestinations;
213218 end ;
214219end ;
215220
221+ function TAppSettings.GetShowFileHint () : Boolean;
222+ begin
223+ Result := FShowFileHint.Value ;
224+ end ;
225+
216226procedure TAppSettings.Init ;
217227begin
218228 var
@@ -233,6 +243,7 @@ procedure TAppSettings.Init;
233243 FLogFilePath := TStringSetting.Create(KEY_LOGFILEPATH, ' ' );
234244 FLogFileCreationMode := TIntegerSetting.Create(KEY_LOGFILECREATIONMODE, Integer(lfcmAppend));
235245 FLogDestinations := TIntegerSetting.Create(KEY_LOGDESTINATIONS, LOG_DEST_FILE);
246+ FShowFileHint := TBoolSetting.Create(KEY_SHOW_FILE_HINT, True);
236247
237248 CreateSetting(FColorTheme);
238249 CreateSetting(FCopyToClipBoardShell);
@@ -248,6 +259,7 @@ procedure TAppSettings.Init;
248259 CreateSetting(FLogFilePath);
249260 CreateSetting(FLogFileCreationMode);
250261 CreateSetting(FLogDestinations);
262+ CreateSetting(FShowFileHint);
251263end ;
252264
253265function TAppSettings.IsExpertMode (): Boolean;
@@ -326,6 +338,11 @@ procedure TAppSettings.SetLogDestinations(const Value : TLogDestinations);
326338 FLogDestinations.Value := v;
327339end ;
328340
341+ procedure TAppSettings.SetShowFileHint (const Value : Boolean);
342+ begin
343+ FShowFileHint.Value := Value ;
344+ end ;
345+
329346procedure TAppSettings.UpdateSettingsFromInternals ();
330347begin
331348 FLoadHistoryMode.Value := FInternalLoadHistoryMode.ToString();
0 commit comments