(&mut self, name: String, index: i32)
| 180 | scr.read_block() > scr.index() |
| 181 | } |
| 182 | |
| 183 | pub(crate) fn unlock(&mut self, index: usize) { |
| 184 | let mut ud = self.user_data.borrow_mut(); |
| 185 | ud.cg[index / 64] |= 1u64 << index; |
| 186 | } |
| 187 | |
| 188 | pub(crate) fn execute_backlog(&mut self) -> Result<(), EngineError> { |
| 189 | self.execute_status(Status::Normal, false)?; |
| 190 | if let Some(window) = self.weak.upgrade() { |
| 191 | let script = self.script.borrow(); |
| 192 | let backlog = script.backlog(); |
| 193 | window.set_backlogs(Rc::new(VecModel::from(backlog)).into()); |
| 194 | } |
| 195 | |
| 196 | Ok(()) |
| 197 | } |
no test coverage detected