mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2024-11-22 08:04:04 +01:00
Refactor
This commit is contained in:
parent
1b7ebc2a96
commit
60cfd52bcf
@ -1979,7 +1979,7 @@ sub DefineConfigToCLIConversion {
|
|||||||
$self = shift;
|
$self = shift;
|
||||||
|
|
||||||
my @values = @{ listify($self->configValues()) };
|
my @values = @{ listify($self->configValues()) };
|
||||||
|
|
||||||
my $valuesStr = "";
|
my $valuesStr = "";
|
||||||
foreach $value (@values) {
|
foreach $value (@values) {
|
||||||
$valuesStr = $valuesStr . "-http-header '$value' "
|
$valuesStr = $valuesStr . "-http-header '$value' "
|
||||||
@ -2250,20 +2250,13 @@ sub DefineConfigToCLIConversion {
|
|||||||
type => KasmVNC::ConfigKey::BOOLEAN
|
type => KasmVNC::ConfigKey::BOOLEAN
|
||||||
})
|
})
|
||||||
],
|
],
|
||||||
toStringSub => sub {
|
deriveValueSub => sub {
|
||||||
$self = shift;
|
undef;
|
||||||
my $value = $self->configValue();
|
},
|
||||||
|
isActiveSub => sub {
|
||||||
|
my $self = shift;
|
||||||
|
|
||||||
switch($value) {
|
$self->configValue() eq 'true';
|
||||||
case 'true' {
|
|
||||||
my $valuesStr = '-hw3d ';
|
|
||||||
}
|
|
||||||
case 'false' {
|
|
||||||
my $valuesStr = ' ';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return $valuesStr;
|
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
KasmVNC::CliOption->new({
|
KasmVNC::CliOption->new({
|
||||||
|
Loading…
Reference in New Issue
Block a user