diff options
| author | pablu <me@pablu.de> | 2026-06-03 11:00:56 +0200 |
|---|---|---|
| committer | pablu <me@pablu.de> | 2026-06-03 11:00:56 +0200 |
| commit | 81cc9a0b347255629d411323e7ff8fee4d5ec61d (patch) | |
| tree | a5704e90a30620fa86dd125aa5f8ed3ffae5ec78 /src/app.rs | |
| parent | c5a634bd5408ea5174035abf8713953e7fc48e08 (diff) | |
Implement drop for joining thread handle
Diffstat (limited to 'src/app.rs')
| -rw-r--r-- | src/app.rs | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -95,6 +95,12 @@ impl App { // Fallback, primarly while implementing _ => match key.code { + KeyCode::Char('r') => { + if !matches!(self.loading_state, LoadingState::Loading) { + self.start_available_packages_load(); + } + None + } KeyCode::Char('q') => Some(Signal::Quit), KeyCode::Tab => Some(Signal::CycleTab), _ => None, @@ -123,12 +129,12 @@ impl App { self.portage.available = packages; self.loading_state = LoadingState::Complete; - // TODO: Join loader thread with main thread again self.available_loader = None; } crate::background_loader::LoaderMessage::Error(e) => { self.loading_error = Some(e); self.loading_state = LoadingState::Error; + self.available_loader = None; } } |
