summaryrefslogtreecommitdiffstats
path: root/src/stage
diff options
context:
space:
mode:
authorCanop <cano.petrole@gmail.com>2022-05-04 20:40:46 +0200
committerCanop <cano.petrole@gmail.com>2022-05-04 20:40:46 +0200
commitc76be097397df82ed62582546ef76bbbf5203819 (patch)
tree6cd7b03037e30b649a4e3be41d5ca5fe6935ca1f /src/stage
parente737f692ffaa4808813b37c6c51b06e6195cb875 (diff)
add the :stage_all_files internal
Default mapping: ctrl-a
Diffstat (limited to 'src/stage')
-rw-r--r--src/stage/stage_state.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/stage/stage_state.rs b/src/stage/stage_state.rs
index 90551ce..90694c3 100644
--- a/src/stage/stage_state.rs
+++ b/src/stage/stage_state.rs
@@ -194,15 +194,16 @@ impl PanelState for StageState {
}
fn do_pending_task(
&mut self,
- stage: &Stage,
+ app_state: &mut AppState,
_screen: Screen,
con: &AppContext,
dam: &mut Dam,
// need the stage here
- ) {
+ ) -> Result<(), ProgramError> {
if self.need_sum_computation() {
- self.stage_sum.compute(stage, dam, con);
+ self.stage_sum.compute(&app_state.stage, dam, con);
}
+ Ok(())
}
fn get_pending_task(&self) -> Option<&'static str> {
if self.need_sum_computation() {