diff --git a/src/ui/cards/edit/imp.rs b/src/ui/cards/edit/imp.rs index 05ece8a..7e0e2b7 100644 --- a/src/ui/cards/edit/imp.rs +++ b/src/ui/cards/edit/imp.rs @@ -174,7 +174,6 @@ async fn file_choose_dialog>(window: Rc) { _ => panic!("Could not create directory for storing images!"), }, }; - println!("Setting handler"); w.get_done_button().connect_closure( "clicked", false, @@ -189,8 +188,6 @@ async fn file_choose_dialog>(window: Rc) { let reading = w.get_reading_input(); let conn = Connection::open(get_db_path()).unwrap(); - println!("INSERTING NEW IMAGE"); - let query = "INSERT INTO cards (imagename, hieroglyph, reading) VALUES(?1, ?2, ?3)"; conn.execute(query, (&new_filename, &hieroglyph, &reading)).unwrap(); w.close(); diff --git a/src/ui/cards/game/imp.rs b/src/ui/cards/game/imp.rs index 19c1e95..b4683b9 100644 --- a/src/ui/cards/game/imp.rs +++ b/src/ui/cards/game/imp.rs @@ -6,7 +6,7 @@ use glib::subclass::InitializingObject; use gtk::glib::clone; use gtk::subclass::prelude::*; use gtk::{prelude::*, Entry}; -use gtk::{glib, CompositeTemplate, Label}; +use gtk::{glib, CompositeTemplate, Label, Box}; #[derive(CompositeTemplate, Default)] #[template(resource = "/org/foxarmy/learn-hieroglyph/cards/game/ui.xml")] @@ -15,6 +15,8 @@ pub struct MemoryCardsGameScene { pub card_display: TemplateChild, #[template_child] pub stats_label: TemplateChild