diff options
Diffstat (limited to 'kvmd/plugins/msd/otg/drive.py')
-rw-r--r-- | kvmd/plugins/msd/otg/drive.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/kvmd/plugins/msd/otg/drive.py b/kvmd/plugins/msd/otg/drive.py index ee54e5e9..11af7f81 100644 --- a/kvmd/plugins/msd/otg/drive.py +++ b/kvmd/plugins/msd/otg/drive.py @@ -53,7 +53,10 @@ class Drive: # ===== def set_image_path(self, path: str) -> None: - self.__set_param("file", path) + if path: + self.__set_param("file", path) + else: + self.__set_param("forced_eject", "") def get_image_path(self) -> str: return self.__get_param("file") |