mirror of
https://github.com/creating2morrow/neveko.git
synced 2025-01-03 09:29:39 +00:00
fix missing product images bytes from vendor
This commit is contained in:
parent
e090b54af2
commit
7b50e6d666
2 changed files with 12 additions and 6 deletions
|
@ -35,12 +35,12 @@ NEVEKO Links (Clear)
|
|||
|
||||
# Github
|
||||
|
||||
git clone https://github
|
||||
git clone https://github.com/creating2morrow/neveko.git
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iJIEARYKADoWIQQEoRcoLQbE3ctKJgFaPK5QG49jTAUCZI+uVhwcY3JlYXRpbmdf
|
||||
dG9tb3Jyb3dAcHJvdG9uLm1lAAoJEFo8rlAbj2NMJC0BALCzcvZ3bO8zVFt+tzf4
|
||||
7wDH/ghLrOVj7JM14vBOhpUEAP4lZZqtWTwUwLDRP144iZzNx+dcIQ0zdCsIF9KL
|
||||
P1P9BA==
|
||||
=DYWe
|
||||
iJIEARYKADoWIQQEoRcoLQbE3ctKJgFaPK5QG49jTAUCZI/cIRwcY3JlYXRpbmdf
|
||||
dG9tb3Jyb3dAcHJvdG9uLm1lAAoJEFo8rlAbj2NMcGoA/3k4+EoTAHAdUNUDB1oW
|
||||
gmbYCOJIEuXoksSmQeSgSvX2AP4iQ2a15s+/Y7Gn0HGMylq3EA6QKC2DPFANYT5L
|
||||
EC0vAg==
|
||||
=vZ7T
|
||||
-----END PGP SIGNATURE-----
|
|
@ -138,6 +138,12 @@ impl eframe::App for MarketApp {
|
|||
vendor_product.pid
|
||||
);
|
||||
if self.is_window_shopping {
|
||||
match std::fs::write(&file_path, &vendor_product.image) {
|
||||
Ok(w) => w,
|
||||
Err(_) => {
|
||||
log::error!("failed to write product image")
|
||||
}
|
||||
};
|
||||
self.is_loading = true;
|
||||
let contents = std::fs::read(&file_path).unwrap_or(Vec::new());
|
||||
// this image should uwrap if vendor image bytes are
|
||||
|
|
Loading…
Reference in a new issue