Closed Fab8573 closed 2 weeks ago
TPath.GetHomePath seems to be readonly on IOS ?
So this raise a write error when saving configuration file :
constructor TManager.Create(AOwner: TComponent); begin inherited; FCanShare := GetCanShare; FAppFolder := TPath.Combine( TPath.GetHomePath , 'ChatGPT');
This could work better :
constructor TManager.Create(AOwner: TComponent); begin inherited; FCanShare := GetCanShare; FAppFolder := TPath.Combine( {$IFDEF IOS} TPath.GetDocumentsPath {$ELSE} TPath.GetHomePath {$ENDIF} , 'ChatGPT');
Thanks, fixed
TPath.GetHomePath seems to be readonly on IOS ?
So this raise a write error when saving configuration file :
This could work better :