mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +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:
|
||||
self.__state.vd.cdrom = cdrom
|
||||
if cdrom:
|
||||
rw = False
|
||||
|
||||
if rw is not None:
|
||||
self.__state.vd.rw = rw
|
||||
if rw:
|
||||
self.__state.vd.cdrom = False
|
||||
|
||||
@aiotools.atomic
|
||||
async def set_connected(self, connected: bool) -> None:
|
||||
|
||||
Reference in New Issue
Block a user