mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-13 01:30:31 +08:00
process cdrom/rw forbidden states in set_params()
This commit is contained in:
parent
88b2e90438
commit
779d0de59f
@ -290,9 +290,13 @@ class Plugin(BaseMsd): # pylint: disable=too-many-instance-attributes
|
|||||||
|
|
||||||
if cdrom is not None:
|
if cdrom is not None:
|
||||||
self.__state.vd.cdrom = cdrom
|
self.__state.vd.cdrom = cdrom
|
||||||
|
if cdrom:
|
||||||
|
rw = False
|
||||||
|
|
||||||
if rw is not None:
|
if rw is not None:
|
||||||
self.__state.vd.rw = rw
|
self.__state.vd.rw = rw
|
||||||
|
if rw:
|
||||||
|
self.__state.vd.cdrom = False
|
||||||
|
|
||||||
@aiotools.atomic
|
@aiotools.atomic
|
||||||
async def set_connected(self, connected: bool) -> None:
|
async def set_connected(self, connected: bool) -> None:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user