Force the update loop to continue even when the program is in the background

master
Joey Pollack 2 years ago
parent d5093bfbd1
commit c64e8f3178

@ -89,12 +89,6 @@ impl eframe::App for JpmmvApp
egui::RichText::new(format!("album: {}", self.current_metadata.album))
.color(egui::Color32::from_rgb(180, 180, 180)));
// ui.label(format!("{}", self.current_metadata.name));
// ui.label(format!("by: {}", self.current_metadata.artist));
// ui.label(format!("album: {}", self.current_metadata.album));
// ui.label(format!("Image URI: {}", self.current_metadata.art_url.clone()));
ui.add_space(20.0);
ui.style_mut().text_styles.insert(
@ -111,5 +105,8 @@ impl eframe::App for JpmmvApp
});
});
});
// Force update calls even when the program is in the background
ctx.request_repaint_after(Duration::from_millis(100));
}
}

Loading…
Cancel
Save