INNER CODE UNIT · Rust

new_interval

sachaos/viddy · src/app.rs:300

                        let new_interval = (self.runtime_config.interval - step).max(min_interval);

                        self.runtime_config.interval = new_interval;

                        self.store.set_runtime_config(StoreRuntimeConfig {
                            interval: new_interval.num_milliseconds() as u64,
                            command: self.runtime_config.command.join(" "),
                        })?;
                    }
                    Action::Suspend => self.should_suspend = true,
                    Action::Resume => self.should_suspend = false,
                    Action::Resize(w, h) => {
                        tui.resize(Rect::new(0, 0, w, h))?;
                        tui.draw(|f| {
                            for component in self.components.iter_mut() {
                                let r = component.draw(f, f.size());
                                if let Err(e) = r {
                                    action_tx

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…