diff --git a/slicops/sliclet/screen.py b/slicops/sliclet/screen.py index f8e7cd5..a0bb81c 100644 --- a/slicops/sliclet/screen.py +++ b/slicops/sliclet/screen.py @@ -133,8 +133,7 @@ def _choices(): def __device_change(self, txn, camera): self.__device_destroy(txn) txn.multi_set(_DEVICE_DISABLE) - if camera: - self.__device_setup(txn, camera) + self.__device_setup(txn, camera) def __device_destroy(self, txn=None): if not self.__device: @@ -163,6 +162,8 @@ def _monitors(): m = self.__monitors[n] = _Monitor(a, h) a.monitor(m) + if camera is None: + return try: # If there's an epics issues, we have to clear the device self.__device = self.__device = slicops.device.Device(camera) diff --git a/ui/vite.config.js b/ui/vite.config.js index aa71532..05f095b 100644 --- a/ui/vite.config.js +++ b/ui/vite.config.js @@ -7,6 +7,7 @@ const port = process.env.SLICOPS_VUE_PORT || 8008; // https://vite.dev/config/ export default defineConfig({ + clearScreen: false, plugins: [ vue(), ],