ui changes

This commit is contained in:
2024-04-09 15:06:27 +03:00
parent 1be42eb584
commit eb26ca7418
4 changed files with 45 additions and 27 deletions

View File

@@ -139,7 +139,6 @@ impl MemoryCardsEditScene {
let connection = Connection::open(get_db_path()).unwrap();
let imagepath = card.imagepath();
let imagename = &Path::new(&imagepath).file_name().unwrap().to_str().unwrap();
dbg!("removing {}", imagename);
fs::remove_file(get_images_store_path() + "/" + &imagename).expect("Could not remove file!");
connection.execute("DELETE FROM cards WHERE imagename = ?1", [&imagename]).unwrap();
self_binding.imp().query_cards(None);