mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 11:17:57 +08:00
Read and write snippet files in a subdirectory of the application directory when in portable mode. Fixes issue #2980.
This commit is contained in:
@ -801,7 +801,11 @@ end;
|
||||
function DirnameSnippets: String;
|
||||
begin
|
||||
// Folder for snippets
|
||||
Result := DirnameCommonAppData + 'Snippets\'
|
||||
if AppSettings.PortableMode then
|
||||
Result := ExtractFilePath(ParamStr(0))
|
||||
else
|
||||
Result := DirnameCommonAppData;
|
||||
Result := Result + 'Snippets\';
|
||||
end;
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user