Skip to content

Commit 63bf27f

Browse files
committed
Config: Add HonorLegacySettings option
1 parent 1459036 commit 63bf27f

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

src-rdpconfig/MainUnit.dfm

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,15 @@ object MainForm: TMainForm
222222
Value = 0
223223
OnChange = seRDPPortChange
224224
end
225+
object cbCustomPrg: TCheckBox
226+
Left = 8
227+
Top = 115
228+
Width = 169
229+
Height = 17
230+
Caption = 'Allow to start custom programs'
231+
TabOrder = 4
232+
OnClick = cbAllowTSConnectionsClick
233+
end
225234
end
226235
object Timer: TTimer
227236
Interval = 250

src-rdpconfig/MainUnit.pas

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
Copyright 2016 Stas'M Corp.
2+
Copyright 2017 Stas'M Corp.
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
@@ -49,6 +49,7 @@ TMainForm = class(TForm)
4949
lsSuppVer: TLabel;
5050
cbHideUsers: TCheckBox;
5151
gbGeneral: TGroupBox;
52+
cbCustomPrg: TCheckBox;
5253
procedure FormCreate(Sender: TObject);
5354
procedure cbAllowTSConnectionsClick(Sender: TObject);
5455
procedure seRDPPortChange(Sender: TObject);
@@ -373,6 +374,11 @@ procedure TMainForm.ReadSettings;
373374
cbSingleSessionPerUser.Checked := Reg.ReadBool('fSingleSessionPerUser');
374375
except
375376

377+
end;
378+
try
379+
cbCustomPrg.Checked := Reg.ReadBool('HonorLegacySettings');
380+
except
381+
376382
end;
377383
Reg.CloseKey;
378384

@@ -431,6 +437,11 @@ procedure TMainForm.WriteSettings;
431437
Reg.WriteBool('fSingleSessionPerUser', cbSingleSessionPerUser.Checked);
432438
except
433439

440+
end;
441+
try
442+
Reg.WriteBool('HonorLegacySettings', cbCustomPrg.Checked);
443+
except
444+
434445
end;
435446
Reg.CloseKey;
436447

0 commit comments

Comments
 (0)