mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-02-01 18:41:54 +08:00
process cdrom/rw forbidden states in set_params()
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user