diff --git a/resources/widgets/card_entry/template.ui.xml b/resources/widgets/card_entry/template.ui.xml
index 9af5cc8..032bca2 100644
--- a/resources/widgets/card_entry/template.ui.xml
+++ b/resources/widgets/card_entry/template.ui.xml
@@ -17,6 +17,7 @@
GTK_ALIGN_START
GTK_ALIGN_CENTER
50
+ true
@@ -24,6 +25,7 @@
GTK_ALIGN_START
GTK_ALIGN_CENTER
50
+ true
@@ -36,6 +38,7 @@
16
16
true
+ true
diff --git a/src/ui/cards/edit/imp.rs b/src/ui/cards/edit/imp.rs
index 9426f8a..73d1d84 100644
--- a/src/ui/cards/edit/imp.rs
+++ b/src/ui/cards/edit/imp.rs
@@ -296,30 +296,9 @@ async fn new_card_setup>(window: Rc) {
fs::copy(&path, stored_image_path).expect("Error copying image to store");
let hieroglyph = w.get_hieroglyph_input();
- // let reading = w.get_reading_input();
- // let translation = w.get_translation_input();
-
- // println!("Input: {hieroglyph}, {reading}, {translation}");
let conn = Connection::open(get_db_path()).unwrap();
- // conn.execute("INSERT OR REPLACE INTO cards ( id,
- // imagename,
- // hieroglyph,
- // reading,
- // translation,
- // is_learning
- // ) VALUES (
- // (SELECT id FROM cards WHERE hieroglyph = ?2),
- // ?1,
- // ?2,
- // ?3,
- // ?4,
- // (SELECT is_learning FROM cards WHERE hieroglyph = ?2
- // )
- // )", (&new_filename, &hieroglyph, &reading, &translation)).unwrap();
- // println!("")
conn.execute("UPDATE cards SET imagename = ?1 WHERE hieroglyph = ?2", (&new_filename, &hieroglyph)).unwrap();
- // conn.execute("INSERT OR REPLACE INTO cards (id, imagename) VALUES ((SELECT id FROM cards WHERE hieroglyph = ?1), ?2)", (&hieroglyph, &new_filename)).unwrap();
conn.execute("UPDATE cards SET is_learning = TRUE WHERE hieroglyph = ?1", [&hieroglyph]).unwrap();
}),
);