HTTP client, game cover art fetcher, game list image display, use smol::LocalExecutor for async runtime

This commit is contained in:
Aleksander
2025-12-25 21:51:38 +01:00
parent 382735956a
commit bfad91bf72
13 changed files with 614 additions and 199 deletions

View File

@@ -21,7 +21,7 @@ impl Tab for TabGames {
}
fn update(&mut self, params: super::TabUpdateParams) -> anyhow::Result<()> {
self.view_game_list.update(params.layout, params.interface)?;
self.view_game_list.update(params.layout, params.executor)?;
Ok(())
}

View File

@@ -4,7 +4,10 @@ use wgui::{
};
use wlx_common::dash_interface::BoxDashInterface;
use crate::frontend::{FrontendTasks, RcFrontend};
use crate::{
frontend::{FrontendTasks, RcFrontend},
util::various::AsyncExecutor,
};
pub mod apps;
pub mod games;
@@ -35,6 +38,7 @@ pub struct TabParams<'a> {
pub struct TabUpdateParams<'a> {
pub layout: &'a mut Layout,
pub interface: &'a mut BoxDashInterface,
pub executor: &'a mut AsyncExecutor,
}
pub trait Tab {