ci: simplify release workflows
This commit is contained in:
1 parent
6dda8dc410
commit
c4dd8488fe
12 files changed
+534
-738
No files matched your search
+1
-5
@@ -69,11 +69,7 @@ impl App {
|
||||
let input_changed = self.handle_events().wrap_err("handle events failed")?;
|
||||
let continuously_animated = progress_active || error_buffer::has_errors();
|
||||
let safety_refresh = last_draw.elapsed() >= Duration::from_secs(1);
|
||||
if input_changed
|
||||
|| continuously_animated
|
||||
|| safety_refresh
|
||||
|| redraw_requested
|
||||
{
|
||||
if input_changed || continuously_animated || safety_refresh || redraw_requested {
|
||||
terminal.draw(|frame| self.render_frame(frame))?;
|
||||
last_draw = std::time::Instant::now();
|
||||
}
|
||||
|
||||
@@ -131,8 +131,7 @@ impl ContentListState {
|
||||
|
||||
let font_size = picker.font_size();
|
||||
for entry in &self.entries {
|
||||
if entry.icon_bytes.is_none()
|
||||
|| !self.requested_images.insert(entry.file_stem.clone())
|
||||
if entry.icon_bytes.is_none() || !self.requested_images.insert(entry.file_stem.clone())
|
||||
{
|
||||
continue;
|
||||
}
|
||||
@@ -194,9 +193,7 @@ impl ContentListState {
|
||||
if let Some(entry) = self
|
||||
.entries
|
||||
.iter_mut()
|
||||
.find(|entry| {
|
||||
entry.file_stem == result.file_stem && entry.path == result.path
|
||||
})
|
||||
.find(|entry| entry.file_stem == result.file_stem && entry.path == result.path)
|
||||
{
|
||||
entry.icon_lines = Some(result.icon_lines);
|
||||
if let Some(image) = result.image {
|
||||
|
||||
Reference in new issue
Block a user