Skip to main content

schedule_removals

Function schedule_removals 

Source
pub(crate) fn schedule_removals(
    qt: &CxxQtThread<Sioul>,
    shared: &Arc<Shared>,
    files: Vec<(String, PathBuf)>,
    back: Option<Box<dyn Fn(&CxxQtThread<Sioul>, &Arc<Shared>) -> String + Send + Sync>>,
    line: String,
)
Expand description

Deletes several files at once after ten seconds to undo, (account, file) each: a task and its time blocks to come, or a task’s blocks left to the plan. back runs on “Undo”, for what was changed at once (a task’s link to its block taken out): it says what went wrong, else “”.