File tree Expand file tree Collapse file tree 2 files changed +18
-8
lines changed Expand file tree Collapse file tree 2 files changed +18
-8
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,11 @@ procedure TDelphiAIDevDefaultsQuestionsModel.SaveData(const AFields: TDelphiAIDe
122
122
LJSONObject.AddPair(' code_only' , TJSONBool.Create(AFields.CodeOnly));
123
123
LJSONArray.AddElement(LJSONObject);
124
124
125
- LStringList.Text := LJSONArray.Format(2 );
125
+ { $IF CompilerVersion <= 32.0} // Tokyo
126
+ LStringList.Text := LJSONArray.ToJSON;
127
+ { $ELSE}
128
+ LStringList.Text := LJSONArray.Format(2 );
129
+ { $ENDIF}
126
130
finally
127
131
LJSONArray.Free;
128
132
end ;
@@ -183,7 +187,11 @@ procedure TDelphiAIDevDefaultsQuestionsModel.EditData(const AFields: TDelphiAIDe
183
187
end ;
184
188
end ;
185
189
186
- LStringList.Text := LJSONArray.Format(2 );
190
+ { $IF CompilerVersion <= 32.0} // Tokyo
191
+ LStringList.Text := LJSONArray.ToJSON;
192
+ { $ELSE}
193
+ LStringList.Text := LJSONArray.Format(2 );
194
+ { $ENDIF}
187
195
finally
188
196
LJSONArray.Free;
189
197
end ;
@@ -228,7 +236,11 @@ procedure TDelphiAIDevDefaultsQuestionsModel.RemoveData(const AGuid: string);
228
236
end ;
229
237
end ;
230
238
231
- LStringList.Text := LJSONArray.Format(2 );
239
+ { $IF CompilerVersion <= 32.0} // Tokyo
240
+ LStringList.Text := LJSONArray.ToJSON;
241
+ { $ELSE}
242
+ LStringList.Text := LJSONArray.Format(2 );
243
+ { $ENDIF}
232
244
finally
233
245
LJSONArray.Free;
234
246
end ;
Original file line number Diff line number Diff line change @@ -424,7 +424,7 @@ class function TUtilsOTA.CheckIfExistFileInCurrentsProjectGroups(const ANameFile
424
424
end ;
425
425
426
426
class procedure TUtilsOTA.IDEThemingAll (AFormClass: TCustomFormClass; AForm: TForm);
427
- { $IF CompilerVersion >= 32.0}
427
+ { $IF CompilerVersion >= 32.0} // Tokyo
428
428
var
429
429
i: Integer;
430
430
LIOTAIDEThemingServices250: IOTAIDEThemingServices250;
@@ -467,7 +467,7 @@ class function TUtilsOTA.ActiveThemeIsDark: Boolean;
467
467
const
468
468
THEME_DARK = ' dark' ;
469
469
begin
470
- { $IF CompilerVersion >= 32.0}
470
+ { $IF CompilerVersion >= 32.0} // Tokyo
471
471
Result := Self.GetIOTAIDEThemingServices.ActiveTheme.ToLower.Equals(THEME_DARK);
472
472
{ $ELSE}
473
473
Result := False;
@@ -496,8 +496,7 @@ class function TUtilsOTA.GetIOTAFormEditor(const AIOTAModule: IOTAModule): IOTAF
496
496
end ;
497
497
end ;
498
498
499
- { $IF CompilerVersion >= 32.0}
500
-
499
+ { $IF CompilerVersion >= 32.0} // Tokyo
501
500
class function TUtilsOTA.GetIOTAIDEThemingServices : IOTAIDEThemingServices;
502
501
begin
503
502
if (not Supports(BorlandIDEServices, IOTAIDEThemingServices, Result))then
@@ -511,7 +510,6 @@ class function TUtilsOTA.GetIOTAIDEThemingServices250: IOTAIDEThemingServices250
511
510
end ;
512
511
{ $ENDIF}
513
512
514
-
515
513
class function TUtilsOTA.GetIOTACompileServices : IOTACompileServices;
516
514
begin
517
515
if (not Supports(BorlandIDEServices, IOTACompileServices, Result))then
You can’t perform that action at this time.
0 commit comments