Skip to content

Commit 6454afd

Browse files
authored
Update vboxconnector.php
Add ability to change clipboard mode on Advanced Tab.
1 parent 40a62ef commit 6454afd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

endpoints/lib/vboxconnector.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1443,6 +1443,7 @@ private function _machineSaveRunning($args, $state) {
14431443

14441444
$m->CPUExecutionCap = $args['CPUExecutionCap'];
14451445
$m->description = $args['description'];
1446+
$m->ClipboardMode = $args['ClipboardMode'];
14461447

14471448
// Start / stop config
14481449
if(@$this->settings->startStopConfig) {
@@ -1860,6 +1861,7 @@ public function remote_machineSave($args) {
18601861
$m->BIOSSettings->IOAPICEnabled = ($args['BIOSSettings']['IOAPICEnabled'] ? 1 : 0);
18611862
$m->CPUExecutionCap = $args['CPUExecutionCap'];
18621863
$m->description = $args['description'];
1864+
$m->ClipboardMode = $args['ClipboardMode'];
18631865

18641866
// Start / stop config
18651867
if(@$this->settings->startStopConfig) {
@@ -3839,6 +3841,7 @@ public function remote_machineCreate($args) {
38393841
$this->session->machine->RTCUseUTC = $defaults->recommendedRTCUseUTC;
38403842
$this->session->machine->firmwareType = (string)$defaults->recommendedFirmware;
38413843
$this->session->machine->chipsetType = (string)$defaults->recommendedChipset;
3844+
$this->session->machine->ClipboardMode = 'Disabled';
38423845
if(intval($defaults->recommendedVRAM) > 0) $this->session->machine->VRAMSize = intval($defaults->recommendedVRAM);
38433846
$this->session->machine->setCpuProperty('PAE',$defaults->recommendedPAE);
38443847

@@ -4219,6 +4222,7 @@ private function _machineGetDetails(&$m) {
42194222
),
42204223
'firmwareType' => (string)$m->firmwareType,
42214224
'snapshotFolder' => $m->snapshotFolder,
4225+
'ClipboardMode' => (string)$m->ClipboardMode,
42224226
'monitorCount' => $m->monitorCount,
42234227
'pageFusionEnabled' => $m->pageFusionEnabled,
42244228
'VRDEServer' => (!$m->VRDEServer ? null : array(

0 commit comments

Comments
 (0)