KASM-4038 fix yaml processor to now pass a bool value for hw3d

This commit is contained in:
ryan.kuba
2023-02-16 18:48:42 -08:00
parent 22ec1c6dbd
commit cdf21ea6fd
2 changed files with 19 additions and 1 deletions

View File

@@ -2249,7 +2249,22 @@ sub DefineConfigToCLIConversion {
name => "desktop.gpu.hw3d",
type => KasmVNC::ConfigKey::BOOLEAN
})
]
],
toStringSub => sub {
$self = shift;
my $value = $self->configValue();
switch($value) {
case 'true' {
$valuesStr = '-hw3d ';
}
case 'false' {
$valuesStr = ' ';
}
}
return $valuesStr;
}
}),
KasmVNC::CliOption->new({
name => 'drinode',