diff options
| author | RanXom <saiyedshizain@gmail.com> | 2026-06-13 00:22:51 +0530 |
|---|---|---|
| committer | RanXom <saiyedshizain@gmail.com> | 2026-06-13 00:22:51 +0530 |
| commit | 76862ae6496eaad52d697fa9bd236a03cfe7321f (patch) | |
| tree | 1b985fa99d53784ecc586a3d24320b3763f9cb63 /src/pomo | |
| parent | e63f92bc607236b11fc4f1a3bdb22da22a8e00f1 (diff) | |
| download | pomoru-76862ae6496eaad52d697fa9bd236a03cfe7321f.tar.xz pomoru-76862ae6496eaad52d697fa9bd236a03cfe7321f.zip | |
export on status on startup and session change
Diffstat (limited to 'src/pomo')
| -rw-r--r-- | src/pomo/mod.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pomo/mod.rs b/src/pomo/mod.rs index ece7e8e..22deb4a 100644 --- a/src/pomo/mod.rs +++ b/src/pomo/mod.rs @@ -98,6 +98,8 @@ impl Pomo { let mut second_tick = tokio::time::interval(Duration::from_secs(1)); + let _ = self.export_status(); + while !self.should_quit { terminal.draw(|f| ui::render(f, self))?; @@ -114,6 +116,7 @@ impl Pomo { && key.kind == event::KeyEventKind::Press { self.handle_key(key); + let _ = self.export_status(); } } } |