(selected_device: State<'_, SelectedDevice>, device_name: String)
| 99 | |
| 100 | #[tauri::command] |
| 101 | fn select_screen(selected_device: State<'_, SelectedDevice>, device_name: String) { |
| 102 | let device = recorder::list_screen().unwrap().into_iter() |
| 103 | .find(|device| device.name() == device_name).unwrap(); |
| 104 | |
| 105 | println!("Switching screen to {device_name:?}"); |
| 106 | |
| 107 | selected_device.lock().unwrap().screen = device; |
| 108 | } |
| 109 | |
| 110 | #[tauri::command] |
| 111 | fn preview_screen(device_name: String) -> String { |
nothing calls this directly
no test coverage detected