some little bits of debug info

This commit is contained in:
Chris Cochrun 2023-09-21 17:12:51 -05:00
parent b2eeb04855
commit 08cc744a31
2 changed files with 4 additions and 4 deletions

View file

@ -536,9 +536,10 @@ mod service_item_model {
#[qinvokable] #[qinvokable]
pub fn save(mut self: Pin<&mut Self>, file: QUrl) -> bool { pub fn save(mut self: Pin<&mut Self>, file: QUrl) -> bool {
println!("rust-save-file: {file}"); println!("rust-save-file: {file}");
let lfr = fs::File::create( let path =
&file.to_local_file().unwrap_or_default().to_string(), file.to_local_file().unwrap_or_default().to_string();
); println!("path: {:?}", path);
let lfr = fs::File::create(&path);
if let Ok(lf) = &lfr { if let Ok(lf) = &lfr {
println!("archive: {:?}", lf); println!("archive: {:?}", lf);
let encoder = Encoder::new(lf, 3).unwrap(); let encoder = Encoder::new(lf, 3).unwrap();

View file

@ -6,7 +6,6 @@ mod song_model {
use diesel::sqlite::SqliteConnection; use diesel::sqlite::SqliteConnection;
use diesel::{delete, insert_into, prelude::*, update}; use diesel::{delete, insert_into, prelude::*, update};
use std::collections::HashMap; use std::collections::HashMap;
use std::path::{Path, PathBuf};
unsafe extern "C++" { unsafe extern "C++" {
include!(< QAbstractListModel >); include!(< QAbstractListModel >);